GA with integer constraints

12 ビュー (過去 30 日間)
uchida yuki
uchida yuki 2019 年 7 月 16 日
回答済み: Anirudh Chhabra 2020 年 6 月 3 日
Hi, MATLAB experts.
I'm trying to optimize a problem by using GA(genetic algorythm).
My problem has integer constraints and I want to use mutation, therefore I chosse 'mutationadaptfeasible' as a 'MutaionFcn'.
but Matlab gives me the erorr shown below.
Caution:Problem has integer constraints. The following options will be ignored by GA.
I cannot understand how to solve this erorr.
please tell me genius answer.

回答 (2 件)

Stephan
Stephan 2019 年 7 月 16 日
The genius answer is given in the documentation of ga:

Anirudh Chhabra
Anirudh Chhabra 2020 年 6 月 3 日
A way that I usually depend on in such situations is to not specify Integer Constraints (IntCon) but to use round() on those values where I need to use them. This keeps them as integers and GA does a good job to converge accordingly.
And as Stephan mentioned, do go through the documentation.

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by