Problem when using linprog - interior-point algorithm

10 ビュー (過去 30 日間)
ANDREA MONTANINO
ANDREA MONTANINO 2024 年 3 月 21 日
コメント済み: ANDREA MONTANINO 2024 年 3 月 21 日
Hello! I am trying to solve the following linear programming problem using MATLAB linprog function
optionsLin = optimoptions('linprog','Display','iter','Algorithm','interior-point',...
'OptimalityTolerance', 1e-8,'MaxIterations',1000,...
'ConstraintTolerance',5e-3);
c = 0.00*grad_displ + 0*1e-5*grad_compr;
LB = []; UB = [];
[Fopt,energy,exitflag] = linprog(c,AA,BB,KCon,bCon,LB,UB,optionsLin);
Since yesterday, the same code seems not to work when a relatively large number of constraints is imposed. Does anyone have any information about possible updates of the optimization toolbox that have caused this issue? Or anyone knows why I am experiencuing this difficulties? ANd above all, anyone that knows how to circumvent this problem?
I am using Matlab 2022b licence, but the same with matlab2023b and 2024a.
Thank you in advance!
  9 件のコメント
Torsten
Torsten 2024 年 3 月 21 日
編集済み: Torsten 2024 年 3 月 21 日
Then you should test which of the optimoptions causes the problem by first using display, then display + algorithm etc.
Maybe it's the optimality tolerance because you work with c = 0 - thus you only try to find a feasible solution without optimizing at all.
ANDREA MONTANINO
ANDREA MONTANINO 2024 年 3 月 21 日
Thank you for your comment. I removed all the options and finally the problem arises when adopting the 'Algorithm','interior-point'.
Unfortunately the alterantive algorithm ('dual-simplex') is extremely slower and returning very bad solutions, compared with the 'interior-point'. So I absolutely need to restore the functionalities of the previous algorithm.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by