How to configure the options of ga function ?

1 回表示 (過去 30 日間)
houda mejri
houda mejri 2017 年 4 月 28 日
コメント済み: houda mejri 2017 年 4 月 28 日
Hello, i tried to configure the parametrs of ga function but i got this message.What to do ? thanks

採用された回答

Stephen23
Stephen23 2017 年 4 月 28 日
編集済み: Stephen23 2017 年 4 月 28 日
The gaoptimset documentation states under the option MaxGenerations: "For gaoptimset, use Generations."
There are many other option names that are different when using gaoptions, so read that documentation carefully.
  2 件のコメント
houda mejri
houda mejri 2017 年 4 月 28 日
thanks for your response. i tried to set generations to 200 but it did give me wrong results ! and also it didn't accept FunctionTolerance!
houda mejri
houda mejri 2017 年 4 月 28 日
Please, i tried to simulate this code from this link https://fr.mathworks.com/help/gads/examples/solving-a-mixed-integer-engineering-design-problem-using-the-genetic-algorithm.html. and this is what i got.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOptimization Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by