Gurobi constraint

Gurobi supports quadratic constraints and objectives. In this case, it is even able to reformulate your model into a mixed-integer linear program. However, Gurobi is still able to solve non-convex quadratic programs. You may be interested in watching https://www.gurobi.com/resource/non-convex-quadratic-optimization/.

p.s. I edited the formatting of your post, you should take a read of PSA: make it easier to help you.

3 Likes