Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
last trial when optimization fail
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!