Demo entry 6682409

Q7

   

Submitted by anonymous on Dec 08, 2017 at 12:42
Language: JavaScript. Code size: 248 Bytes.

var x1>=0;
var x2>=0;
var x3>=0;
var x4>=0;
var x5>=0;
var x6>=0;

minimize obj:-7*x1+7*x2-2*x3-x4-6*x5;

s.t. con1:3*x1-x2+x3-2*x4=-3;
s.t. con2:2*x1+x2+x4+x5=4;
s.t. con3:-x1+3*x2-3*x4+x6=12;
solve;
display x1,x2,x3,x4,x5,x6;
end;

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).