フィルターのクリア

What does output describe in fminbnd?

2 ビュー (過去 30 日間)
Minh Handsome
Minh Handsome 2016 年 1 月 12 日
編集済み: Stephen23 2016 年 1 月 12 日
I met some problems about 'fminbnd'. [x,fval,exitflag,output] = fminbnd(...). I don't understand when exitflag=-1, and I have no idea what happened in the output. Can anyone explain those for me? I will appreciate that.
output =
iterations: 24
funcCount: 25
algorithm: 'golden section search, parabolic interpolation'
message: [1x111 char]

回答 (2 件)

Stalin Samuel
Stalin Samuel 2016 年 1 月 12 日
  • [x,fval,exitflag,output] = fminbnd(...) returns a structure output that contains information about the optimization in the following fields:
  • algorithm 'golden section search, parabolic interpolation'
  • funcCount Number of function evaluations
  • iterations Number of iterations
  • message Exit message *source

Stephen23
Stephen23 2016 年 1 月 12 日
Why not start by reading the documentation? You can locate the documentation in 0.5 seconds using your favorite internet search engine. This is what the fminbnd documentation says:
[x,fval,exitflag] = fminbnd(...) returns a value exitflag that describes the exit condition of fminbnd:
1 fminbnd converged to a solution x based on options.TolX.
0 Maximum number of function evaluations or iterations was reached.
-1 Algorithm was terminated by the output function.
-2 Bounds are inconsistent (x1 > x2).
You can find explanations of the rest of the outputs. You might like to read it.
  2 件のコメント
Minh Handsome
Minh Handsome 2016 年 1 月 12 日
what does 'Algorithm was terminated by the output function.' mean ?
Stephen23
Stephen23 2016 年 1 月 12 日
編集済み: Stephen23 2016 年 1 月 12 日
This means that the routine was terminated before it returned a solution. This happens when the user terminates the routine via the output function. The output function is described here:

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeOptimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by