Problem 5

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

$Title problem5 $Ontext $Offtext Sets i j Parameters c(i) / x1 x2 x3 m1 m2 x1 9 20 5 8 6/ 14 110 / ; x2 6 63 x3 10 10; / x1,x2,x3 / / m1,m2/;

b(j) / Table A(j,i) m1 m2 Variable f

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 ;

You might also like