CS代考计算机代写 matlab % Use ipdriver to solve

% Use ipdriver to solve
%
% min c’x 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
%

Leave a Reply

Your email address will not be published. Required fields are marked *