Displaying intermediate optimization steps with linprog

5 vues (au cours des 30 derniers jours)
Brian
Brian le 30 Sep 2012
Hello, all, thank you for reading this,
I was wondering, how can I get MATLAB so solve for the intermediate steps with the linprog function, so I can begin to understand where it starts and how it approaches the answer.
An example of the code is here:
f = [-6;-4]; % linprog solves minimization problems
A = [3 2;
-4 9];
b = [8; 20];
lb = [0;0];
up = [Inf; Inf];
options = optimset('LargeScale', 'off');
xsol = linprog(f,A,b,[],[],lb,up,[],options)
and I already solved this by hand and via MATLAB. I just want to know so I can better understand the function and also check some other intermediate steps.
Thanks for your help.

Réponses (0)

Catégories

En savoir plus sur Get Started with Optimization Toolbox 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!

Translated by