How to test optimality of a solution ?

3 Ansichten (letzte 30 Tage)
Davout
Davout am 8 Mär. 2014
Bearbeitet: Matt J am 8 Mär. 2014
Hi
Consider a constrained optimisation problem min f(x) (P) that can be solved with fmincon.
given a particular vector x. Is there a simple and inexpensive way to simply test the optimality of x (or quantify its sub optimality) with respect to problem (P).
Thank you

Akzeptierte Antwort

Matt J
Matt J am 8 Mär. 2014
Bearbeitet: Matt J am 8 Mär. 2014
The fourth output of FMINCON
[x,fval,exitflag,S] = fmincon(...)
is a structure S containing info about how the algorithm terminated. There is a field S.firstorderopt which tries to quantify how well the final point x satisfies the constrained first order optimality equations.

Weitere Antworten (0)

Kategorien

Mehr zu Nonlinear 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!

Translated by