Quadprog solver stalled, constraints satisfied.

15 ビュー (過去 30 日間)
Mingyang Sun
Mingyang Sun 2021 年 4 月 16 日
回答済み: Matt J 2021 年 4 月 16 日
H is a 400 x 400 symmetric matrix, when I use
quadprog(H,-f, Aieq, zeros(PreL_max,1),[],[],[],[],[],optimoptions('quadprog','Display','final','ConstraintTolerance',1e-12));
I got
"Solver stalled, constraints satisfied.
quadprog stopped because the size of the current step is less than
the value of the step size tolerance and constraints are
satisfied to within the value of the constraint tolerance."
However, if I use
quadprog(H,-f, Aieq, zeros(PreL_max,1));
I got
"Minimum found that satisfies the constraints.
Optimization completed because the objective function is non-decreasing in
feasible directions, to within the value of the optimality tolerance,
and constraints are satisfied to within the value of the constraint tolerance."
Why I have different output?

採用された回答

Matt J
Matt J 2021 年 4 月 16 日
Well, because in the first case you are using a non-default ConstraintTolerance, of course. That changes the conditions when the quadprog stops iterating.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by