Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.
dvar float+ X;
dvar boolean Y;
maximize X;
subject to {
X>= 5 => Y==1;
X<= 5-0.001 => Y==0;
}
I am getting optimal solution as 5 only. It is an unbounded problem then the optimal solution should be infinite but why it is taking the least value?
Thank you
Sandeep
Hi,
execute
{
writeln(cplex.getCplexStatus());
gives 2 which means unbounded
Thanks Alex. If it is unbounded then it should give the maximum objective value infinite because X can take any positive value. Why it is restricted to 5 only?