qzy888

24 Reputation

3 Badges

16 years, 346 days

MaplePrimes Activity


These are questions asked by qzy888

Hi,

I've written a simple LPSolve test program. But it seems to fail to give me the correct answer that satisfy the constraints. Here is the code:

with(Optimization):

cnsts := {x1 + x2 + x3 + x4 + x5 >= 1, x1+x2+x3+x11+x6 >= 1, x7+x9+x10+x4+x5 >=1, x7+x9+x10+x4+x5 >= 1, x7+x9+x10+x11+x6 >=1, x8 + x9 + x10+x4+x5 >=1, x8+x9+x10+x11+x6 >=1};

obj := x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11;     

LPSolve(obj,cnsts,assume = {nonnegative});

 

Page 1 of 1