linprog ignores options, why?
Afficher commentaires plus anciens
I'm executing:
options = optimoptions( 'linprog' );
options.Algorithm = 'interior-point';
%options.Algorithm = 'dual-simplex';
options.Display = 'iter';
options.MaxIterations = 100;
options.OptimalityTolerance = 1e-2;
options.Preprocess = 'basic';
options.MaxTime = 1;
options
x = linprog( c, A, b, [], [], [], [], options );
linprog completely ignores the options: it doesn't show any output, and it takes 2sec instea of 1. No matter the algorithm, the performance is the same.
On the subject. How do I set a warm start x0?
How do I stop the simplex prematurely after finding the 10th feassible vertex?
6 commentaires
John D'Errico
le 12 Août 2022
Knowing which MATLAB release you are using would be pertinent, before anyone can even try to answer your question..
Walter Roberson
le 12 Août 2022
https://www.mathworks.com/help/optim/ug/linprog.html#buusznx-options
MaxTime is supported only for dual-simplex
Zohar
le 12 Août 2022
Bruno Luong
le 12 Août 2022
Modifié(e) : Bruno Luong
le 12 Août 2022
Can you run with exitflag and output
[x, fval, exitflag, output] = linprog( c, A, b, [], [], [], [], options )
and share them?
Bruno Luong
le 12 Août 2022
"How do I set a warm start x0?"
It is NOT possible.
"How do I stop the simplex prematurely after finding the 10th feassible vertex?"
What vertex? MATLAB propose 2 algorithms, interior points and dual-simplex.
In both cases the intermediate results are NOT primal feasible vertex. So finding feasible vertex is meanigless for both algorithm.
Zohar
le 12 Août 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!