Originally posted by: Ji.She
Hi everyone,
I am trying to use cplex to solve a quadratic constraint programming problem. To test how to do this, I formulated a small problem in python 2.7 and attached the script here. The problem itself is very simple and I present it here:
Max c
s.t. Q1: c^2 = a^2 + b^2
0 <= a <= 10
0 <= b <= 20
I got an error message when calling the solver, which was: "CPLEX Error 5002: 'Q1' is not convex."
However, from my understanding, this constraint is definitely convex so I don't know why I still get this error. Would anyone please look at it a bit to see if you may identify the error? Any help is greatly appreciated.
Thank you,
Ji
#CPLEXOptimizers#DecisionOptimization