- Iterations and Function Counts
- Nonlinear constraint violations are the maximum of your nonlinear inequality constraint functions c(x), your nonlinear equality constraint functions |ceq(x)|, and your linear constraints A*x-b and |Aeq*x - beq|. The meaning of your positive value is that some of your constraints are not satisfied at the returned solution x.
- That is up to you. You know that the constraints are not satisfied. Does that matter to you? If this problem is the same as that posted in another thread, then your output function stopped the optimization before fmincon reached what it considers to be a good solution.
What do the fields in the output structure of fmincon mean?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Viswanath Hariharan
am 27 Jun. 2018
Kommentiert: Walter Roberson
am 1 Jul. 2018
When we solve an optimization problem and obtain the output structure, it has fields such as funcCount, constrviolation, stepsize, firstorderopt etc.
According to the documentation, funcCount means function evaluations.
1. What is the difference between iterations and funcCount?
According to the documentation, constrviolations means maximum of constraint functions.
2. What does it mean to say maximum of constraint functions? In my problem, output.constrviolations = 0.1956. What does this mean?
3. How do I use these values to analyze quality of solution?
0 Kommentare
Akzeptierte Antwort
Alan Weiss
am 27 Jun. 2018
Alan Weiss
MATLAB mathematical toolbox documentation
2 Kommentare
Walter Roberson
am 1 Jul. 2018
"The condition states that c(x) <= 0 so wont it always ensure a value less than 0"
No, to account for floating point round off, it accepts c(x) <= tolerance
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!