フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

last trial when optimization fail

1 回表示 (過去 30 日間)
Qifan
Qifan 2016 年 5 月 31 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi all, I am doing an optimization using fminunc. The optimization process crashes due to some error (I have also tried fminsearch which encounters the same error). I wonder if there is any possibility to capture the last trial of the parameter values within the optimization process before the error occurs? Expect your idea and thanks in advance.

回答 (1 件)

John D'Errico
John D'Errico 2016 年 5 月 31 日
What is the problem with just dumping the (ALL) function calls to the command window?
In the beginning of your objective function, write out the values it is passed. The last call before the error will tell you the problem.
You can always take out those lines when the code is operating properly, or even just comment them out.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by