Displaying intermediate optimization steps with linprog

5 ビュー (過去 30 日間)
Brian
Brian 2012 年 9 月 30 日
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.
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 30 日
what do you want to know?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by