Originally posted by: MarekGrzes
Hello,
I would like to use OPL/CPLEX to solve an optimization problem with non-convex quadratic objective subject to linear constraints. I was reading other posts on IBM forums and it looks that I can solve such a problem approximately (local optima) setting solutiontarget=2. I am trying to run a tiny example to check if this works, but the following code does not work:
dvar float x;
dvar float y ;
execute PARAMS {
solutiontarget=2;
}
minimize x * y;
subject to {
0.5 <= x <= 1;
0.5 <= y <= 1;
}
CPLEX says:
### ENGINE exception: CPLEX Error 5002: Q in objective is not positive semi-definite.
<<< no solution
Is there anything else that I need to change to obtain an approximate solution? Obviously, Q is not PSD, but if CPLEX can search for an approximation, it should be able to ignore this requirement.
Kind Regards,
Marek
#DecisionOptimization#OPLusingCPLEXOptimizer