How to test optimality of a solution ?

2 ビュー (過去 30 日間)
Davout
Davout 2014 年 3 月 8 日
編集済み: Matt J 2014 年 3 月 8 日
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

採用された回答

Matt J
Matt J 2014 年 3 月 8 日
編集済み: Matt J 2014 年 3 月 8 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by