Using fminsearch, difference between max iteration and max function evaluations.
조회 수: 17 (최근 30일)
이전 댓글 표시
I would like to know the difference MaxFuncevals and MaxIter using "fminsearch".
Could you give me an examples that using MaxFuncvals and Maxiter? (for example, max iter equals 10, fmimsearch functions calcaulates 10times ans it is same that if I set the maxFuncvals equals to 10. isn't it?)
(You can define these parameters using the optimset function. fminsearch uses these options structure fields: <--help) but I heard that it is possible that we can set the MaxIter without structure.
In the help, there are 3 examples using fminsearch function but there is no answer in these examples
댓글 수: 0
채택된 답변
Matt J
2014년 4월 28일
편집: Matt J
2014년 4월 28일
fminsearch uses the Nelder Mead algorithm. As you will see at the link, the Nelder Mead algorithm requires the evaluation of the function at a number of different points in each iteration. Therefore, the number of iterations and the number of function evaluations are not the same.
MaxIter puts a limit on the number of iterations, i.e., the number of different solution guesses x_n generated. MaxFunEvals, meanwhile, gives you finer control, putting a limit on the total number of function evaluations in the whole process.
댓글 수: 1
Alan Weiss
2014년 4월 28일
There was a similar discussion about the difference between function evaluation and iteration for the simulated annealing solver. While the solver is different, perhaps you will find the discussion enlightening:
Alan Weiss
MATLAB mathematical toolbox documentation
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!