GA algorithm toolbox (define constraint)
Show older comments
Hi
I have objective function with 5 variable which I have implemented in the genetic algorithm to optimize it .
I have trouble defining its constraint in the genetic algorithm.
The constraint I want to define:
- X1 & x2 & x4 is integer
- If I assume a is integer
- Then x1=A*x4 & x1=A*x5
- X2=A*x4 & X2=A*X5
Can someone guide me to define this constraint to GA toolbox matlba?
1 Comment
Walter Roberson
on 25 Sep 2020
Your constraints require x4 = x5 but x5 is not constrained to be integer.
Accepted Answer
More Answers (0)
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!