I need help to modify my optimization code

조회 수: 1 (최근 30일)
S AsZ
S AsZ 2019년 10월 10일
댓글: Star Strider 2019년 10월 11일
Hi
I have an optimization model but I think this code is incorrect because the results show that objective function remains constant during running model and I have no improvement in objective function value.
I don't sure that my code be correct.
Can anyone help me to correct the mistakes in this code?
My model and its code are as follows:

채택된 답변

Star Strider
Star Strider 2019년 10월 10일
Note that in the ‘% Parameters’ section, you are creating new random numbers in every call to ‘objective_function’.
The optimisation routine you are using (that if I remember correctly is the ga function) is chasing a moving target! It is not possible to optimise a function that is constantly changing.
  댓글 수: 2
S AsZ
S AsZ 2019년 10월 11일
Thanks
Star Strider
Star Strider 2019년 10월 11일
As always, my pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by