- Change in x was smaller than the specified tolerance.
What does exitflag =2 mean for fsolve
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rajeev kamal
am 21 Jan. 2016
Beantwortet: Star Strider
am 21 Jan. 2016
I just completed and ran a fsolve loop that gave me some results with each iteration with exitflag=2
Equation solved, fsolve stalled.
fsolve stopped because the relative size of the current step is less than the
default value of the step size tolerance squared and the vector of function values
is near zero as measured by the default value of the function tolerance.
<stopping criteria details>
xopt = 1.0e+03 *
4.4075 0.2890
Fval = 1.0e-06 *
-0.2928
0.0000
exitflag =
2
What is the significance from the solution point of view. Any suggestions?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 21 Jan. 2016
From the documentation:
That essentially means that the solver stopped because it had reached an acceptable solution as specified in its options structure.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!