Take this quadratic constraint as example:
(-x1^2 + x2^2 + x3^2 <= 0)
Note that in the CPLEX Python API, the above constraint is formalated as follows:
m.quadratic_constraints.add(
quad_expr=[["x1", "x2", "x3"], ["x1", "x2", "x3"], [-1, 1, 1]],
sense='L', rhs=0, name="q1"
)
How to add the aforementioned quadratic constraint into the model by using DOcplex, not CPLEX Python API?