How to configure the options of ga function ?

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Optimization Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by