Why is lambda as an output of fmincon empty?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Viswanath Hariharan
le 25 Juin 2018
Réponse apportée : Steve Grikschat
le 27 Juin 2018
I am using fmincon to perform convex, non linear programming, constrained optimization. I don't have any non linear equality constraints. I have linear equality and inequality constraints and non linear inequality constraints. I just have a few questions.
1. What does it mean for fmincon solver to give out an empty lambda?
2. How to check for quality of solution obtained by fmincon?
3. How to obtain duality gap in fmincon?
2 commentaires
Alan Weiss
le 26 Juin 2018
Please show us your fmincon call and the output from that call.
Alan Weiss
MATLAB mathematical toolbox documentation
Réponse acceptée
Steve Grikschat
le 27 Juin 2018
Hi Viswanath,
The lambda output is empty since the algorithm was stopped prematurely by the OutputFcn.
When that happens, the lambda (the Lagrangian duals) may be in an inconsistent state, so they are not returned. If you let the optimization complete normally, you should get a structure of duals in the lambda output (assuming the problem is not infeasible or unbounded).
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!