< MATLAB Programming


f=[25,40];
A=[5 2;4 2;1 1];
b=[500;40;60];

Aeq=[]; beq=[]; lb=[0,0]; ub=[inf;inf]; X=linprog(f,A,b,Aeq,beq,lb,ub);

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.