Professional Documents
Culture Documents
Problem 5
Problem 5
Problem 5
objective function ;
Positive Variables x(i) Equations obj ineq(j) eq1 eq2 eq3 ; obj.. ineq(j) .. eq1 .. eq2 .. eq3 .. f =e= sum(i, c(i)*x(i)) ; sum(i, A(j,i)*x(i)) =l= b(j) ; x('x1') =e= 1 ; x('x2') =e= 0 ; x('x3') =e= 1 ;
Model five /all/ ; Solve five using lp maximizing f ; Display x.l, x.m ;