[SOLVED] CS matlab % Use ipdriver to solve

$25

File Name: CS_matlab_%_Use_ipdriver_to_solve.zip
File Size: 310.86 KB

5/5 - (1 vote)

% Use ipdriver to solve
%
% min cx subject to A*x=b, x>=0,
%
A = [1 1 -1 0; 3 1 0 -1];
b = [3 6];
c = [2 1 0 0];

[x,y,s] = ipdriver(c,A,b);

%load AFIRO etc

% Example AFIRO from Netlib.
%
% Netlib [1] provide a set of linear programming test problems. These
% problems in MATLAB format can be downloaded from [2]. See the readme
% file in [1] to find the problems that do not have upper bounds on the
% variables (no entry in column BR).
%
% [1] http://www.netlib.org/lp/data
% [2] http://users.clas.ufl.edu/hager/coap/Pages/matlabpage.html
%

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS matlab % Use ipdriver to solve
$25