Problem when using linprog - interior-point algorithm
显示 更早的评论
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
2024-3-21
And what has changed since yesterday on your computer ? A new MATLAB installation ?
ANDREA MONTANINO
2024-3-21
Torsten
2024-3-21
What is the length of c = 0.00*grad_displ + 0*1e-5*grad_compr ?
Does it equal size(AA,2) and size(Kcon,2) ?
What error message do you get from "linprog" ?
It's almost impossible to find the problem with the information given.
ANDREA MONTANINO
2024-3-21
I always see the options as
optionsLin = optimoptions(@linprog,...
instead of
optionsLin = optimoptions('linprog',
in the MATLAB documentation. Does this change anything ?
What if you don't use the options command at all ?
Does the error appear right at the beginning of the computation or after a while when the solver could have finished ?
Matt J
2024-3-21
@ANDREA MONTANINO Run the code for us here in the online Matlab environment and see if you get a different result.
ANDREA MONTANINO
2024-3-21
ANDREA MONTANINO
2024-3-21
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!