Borrar filtros
Borrar filtros

Displaying intermediate optimization steps with linprog

1 visualización (últimos 30 días)
Brian
Brian el 30 de Sept. de 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.

Respuestas (0)

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by