Simulation Optimization by fmincon

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 日

0 投票

Similar question has been answered in the community. Refer to this Link for details.

カテゴリ

ヘルプ センター および File ExchangeManual Performance Optimization についてさらに検索

製品

リリース

R2019a

質問済み:

2019 年 9 月 8 日

編集済み:

2021 年 2 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by