Originally posted by: sarahD
Hi again,
First, thanks a lot, it works fine with addQCs for standard quadratic constraints. !
But I have another question:
As stated in the documentation, the solver detects socp constraints when given by quadratic constraints with matrices like
-1 0 0
0 1 0
0 0 1
although these matrices are nor positive semidefinite.
For my examples, this works just under certain circumstences, hence for a single socp constraint, and only in case that the first variable belongs to this socp constraint.
So, I works for one quadratic (socp) constraint with
l=0, r=0, Q=
-1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
But not if I add a second matrix, eg:
l2=0, r2=0,
Q2 = 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 -1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Or it also does not work for one constraint like
l=0, r=0, Q=
0 0 0 0 0 0 0 0
0 -1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
For the last two cases cplex states:
'CPLEX Error 5002: Q in 'q2' is not positive semi-definite.'
Can you help me? Is there a way to add several socp constraints?
Thanks a lot!!!
Best, Sarah
#CPLEXOptimizers#DecisionOptimization