How to configure the options of ga function ?

1 vue (au cours des 30 derniers jours)
houda mejri
houda mejri le 28 Avr 2017
Commenté : houda mejri le 28 Avr 2017
Hello, i tried to configure the parametrs of ga function but i got this message.What to do ? thanks

Réponse acceptée

Stephen23
Stephen23 le 28 Avr 2017
Modifié(e) : Stephen23 le 28 Avr 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 commentaires
houda mejri
houda mejri le 28 Avr 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 le 28 Avr 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Optimization Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by