Originally posted by: Dr. K.
Thank you for your prompt reply, Alex, but now it is showing the "CPLEX Error 5002: 'nonconvex' is not convex."
Here is what I have now (BTW, the check shows that the setting was successful):
execute
{
cplex.optimalityTarget=3;
writeln("Check if set: ",cplex.optimalityTarget)
}
dvar float+ x1;
dvar float x2;
minimize
x2;
subject to {
nonconvex:
x1^2+4*x2^2>=4;
convex:
(x1-2)^2+x2^2<=5;
}
What am I missing?
#CPLEXOptimizers#DecisionOptimization