model:<br/>sets:<br/>f/1..3/:c,b,x;<br/>M(f,f):A;<br/>endsets<br/>data:<br/>c=3,2,1;<br/>b=-15,3,2;<br/>A=-2 -1 -1<br/> 4 3 1<br/> -1 1 3;<br/>enddata<br/><a href="mailto:min=@sum(f:c*x">min=@sum(f:c*x</a>);<br/>@for(f(i)sum(f(j):A(i,j)*x(j))>=b(i));<br/>end<br/> |