simplex_reduce
Publié : mer. août 07, 2013 3:06 pm
simplex_reduce is a useful command.
Unfortunately there is a bug in it, if not more.
Maximize x+y
subject to
x+y+z <= 3
x,y,z >= 0
yields the solution
x=3,y=3,z=0
but then x+y+z=3+3+0=6 > 3.
See
simplex_reduce([[1,1,1]],[3],[1,1,0]);
The problem seems to be that the code does not know how to handle the two
"vertex" solutions {x=3,y=0,z=0} and {x=0,y=3,z=0}.
Unfortunately there is a bug in it, if not more.
Maximize x+y
subject to
x+y+z <= 3
x,y,z >= 0
yields the solution
x=3,y=3,z=0
but then x+y+z=3+3+0=6 > 3.
See
simplex_reduce([[1,1,1]],[3],[1,1,0]);
The problem seems to be that the code does not know how to handle the two
"vertex" solutions {x=3,y=0,z=0} and {x=0,y=3,z=0}.