Originally posted by: gyhuang
It seems now that I can run cplex, but the results are odd. I am simply running QCPex1.java, which is the example for QCP. It says:
ILOG CPLEX 11.200, licensed to "university-davis, ca", options: b e m use=10
Exception in thread "main" ilog.cplex.CpxException: CPLEX Error 1217: No solution exists.
Even if I change it to a problem below, there is still no solution. I think the problem below definitely has a solution, right?
========================================================
\Problem name: ilog.cplex
Maximize
obj: IloX0 + 2 IloX1 + 3 IloX2 + [ 33 IloX0 ^2 + 12 IloX0 * IloX1
+ 22 IloX1 ^2 + 23 IloX1 * IloX2 + 11 IloX2 ^2 ] / 2
Subject To
IloC0: IloX0 + IloX1 + IloX2 <= 20
IloC1: IloX0 + 3 IloX1 + IloX2 <= 30
IloC0:
IloX0 ^2 + IloX1 ^2 + IloX2 ^2 <= 1
Bounds
0 <= IloX0 <= 40
End
========================================================
Anyone knows what happened?
Thanks.
#CPLEXOptimizers#DecisionOptimization