Simulation Optimization by fmincon

1 次查看(过去 30 天)
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
Similar question has been answered in the community. Refer to this Link for details.

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by