필터 지우기
필터 지우기

Displaying intermediate optimization steps with linprog

조회 수: 1 (최근 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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by