Displaying intermediate optimization steps with linprog

5 views (last 30 days)
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.

Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!