GA algorithm toolbox (define constraint)
古いコメントを表示
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 件のコメント
Walter Roberson
2020 年 9 月 25 日
Your constraints require x4 = x5 but x5 is not constrained to be integer.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!