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 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