How do I add a quadratic constraint using coeff in the scipsuite python interface
This is currently not supported. You need to loop through your quadratic constraints and add them one after the other using the expression method.
How do I add a quadratic constraint using the scip python interface?
In one of the examples, I see something like model.addCons(x*x+y*y<=6)
However, since I have a lot of variables(x1..xn and my constraint is of the form x'Qx<=0.2, where x is n*1 and Q is n*n), this method is rather impossible. How can I put the quadratic constraint in a python dictionary of coeffs as I do the linear constraints? (coeffs={x**2:3.0，y**2:1.0,z**2:5.0} for example if I want 3x^2+y^2+5z^2<=10)