Originally posted by: m_carv
Hi everyone
I am solving the following mixed integer quadratic problem
Maximize
obj: - 16 y1 + 13 q1 + [ - 2 q1 ^2 ] / 2
Subject To
bigM: - 50 y1 + q1 <= 0
Bounds
0 <= y1 <= 1
Binaries
y1
End
for which the optimal solution is y1=1, q1 = 6.5 with objective value equal to 26.25.
However, when the optimization executed by CPLEX 12.6.0.0 is y1=0 and q1=0.
Attached it is the python file to create and solve the above optimization problem.
Am I doing something wrong? Is this a bug?
I changed the quadratic coefficient to be 0.5 and, in this case, the correct optimal solution is returned by CPLEX....
Thanks in advance.
#CPLEXOptimizers#DecisionOptimization