GA does not solve problems with integer and equality constraints.

6 ビュー (過去 30 日間)
Mohammad Al ja'idi
Mohammad Al ja'idi 2020 年 11 月 24 日
コメント済み: Mohammad Al ja'idi 2020 年 11 月 24 日
Hi,
I am working on intger (binary) nonlinear problem with (0-1), with equality constraint.
when I used the GA to solve the problem I got the following error:
"GA does not solve problems with integer and equality constraints"
How can I solve this problem, and is there any function in matlab can help or support this kind of problem (integer nonlinear problem with equality constraint)
Thanks,

採用された回答

Stephan
Stephan 2020 年 11 月 24 日
編集済み: Stephan 2020 年 11 月 24 日

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 11 月 24 日
you can still use ga but you have to tell ga that you have no integer constraints. Then you have to provide a population function and a crossover function and a mutation function that all "just happen" to generate configurations that satisfy your integer constraints.
When you declare integer constraints then the implementation works by putting in functions that enforce the constraints, and that interferes with adding your own functions.

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by