Stop the optimiser manually and get the final values
조회 수: 8 (최근 30일)
이전 댓글 표시
Dear all,
I am trying to optimize a function with many parameters using fminunc. The optimizer has been running for more than two days and i got message "number of function evaluations has been exceeded". I am honestly not an expert in optimization but I suspect that the optimizer is stuck in a paramter space or maybe the tolerance is too extreme and i need to looseen it a bit. I was just wondering whether I can stop the optimizer manually using "Control + C" and get the values of the parameters (even though they are not the optimal ones). Thank you very much for any help you could give me.
Kind Regards
S
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 7월 7일
No, when you control-C you are going to lose the values.
Consider using optimset() to add an OutputFcn that plots the values.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!