The following code can be used to solve a LP (Linear Programming) problem:
c = [-7; -5];
A = [ 1 2
4 1 ];
b_U = [ 6; 12 ];
x_L = [ 0; 0 ];
toms 2x1 x
solution = ezsolve(c'*x, {A*x<=b_U, x_L<=x});
The following code can be used to solve a LP (Linear Programming) problem:
c = [-7; -5];
A = [ 1 2
4 1 ];
b_U = [ 6; 12 ];
x_L = [ 0; 0 ];
toms 2x1 x
solution = ezsolve(c'*x, {A*x<=b_U, x_L<=x});