How to configure the options of ga function ?

2 Ansichten (letzte 30 Tage)
houda mejri
houda mejri am 28 Apr. 2017
Kommentiert: houda mejri am 28 Apr. 2017
Hello, i tried to configure the parametrs of ga function but i got this message.What to do ? thanks

Akzeptierte Antwort

Stephen23
Stephen23 am 28 Apr. 2017
Bearbeitet: Stephen23 am 28 Apr. 2017
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 Kommentare
houda mejri
houda mejri am 28 Apr. 2017
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 am 28 Apr. 2017
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Optimization Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by