Help setting time limit on fzero
조회 수: 5 (최근 30일)
이전 댓글 표시
I need to set a time limit or a max number of iterations on the premade function, fzero.m. Can anyone please help me with this?
Thanks, Eric
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 3월 17일
Use optimset() to create a parameters structure that sets an output function. The output function should check the iterations or the time elapsed and return true if the optimization should terminate.
참고 항목
카테고리
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!