Simulation Optimization by fmincon

조회 수: 3 (최근 30일)
Mohammad Behtash
Mohammad Behtash 2019년 9월 8일
편집: Pratheek Punchathody 2021년 2월 15일
Hi,
I am trying to optimize a simulation by simulink and fmincon. At some iterations, infeasible points, my simulation fails. I am using try and catch command to catch the error and return NaN to the optimizer as suggested here (see the link) . It is mentioned that fmincon has the ability to deal with NaN; however, I am getting the following error from the optimizer:
Error using sqpInterface
Finite difference derivatives at initial point contain Inf or NaN values. Fmincon cannot continue.
I would appreciate it if someone could help me with this. Thanks.
Regards,
Mo

답변 (1개)

Pratheek Punchathody
Pratheek Punchathody 2021년 2월 15일
편집: Pratheek Punchathody 2021년 2월 15일
Similar question has been answered in the community. Refer to this Link for details.

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by