フィルターのクリア

Using fminsearch, difference between max iteration and max function evaluations.

16 ビュー (過去 30 日間)
sewook
sewook 2014 年 4 月 28 日
コメント済み: Alan Weiss 2014 年 4 月 28 日
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

採用された回答

Matt J
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
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 ExchangeSimulated Annealing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by