MILP bilinear constraints
Awaiting user inputI have a mixed integer linear program. My objective function involves the sumation of binary variables and quadratic terms of continuous variables. When i execute the model optimize function i get that the presolved model has bilinear contstraints, but when i execute m.getQConstrs() i get an empty list, which is the expected as i do not add bilinear constraints on my model, and i don't want to solve it as a non-convex problem.
-
Hi Nick,
Do you see a difference if you run m.update() prior to m.getQConstrs() ?
- Riley
0 -
Hi Riley,
thanks for the answer. In my source code m.update() is prior to m.getQConstrs().
- Nikos
0 -
Hi Nick,
You mentioned that you don't want to solve it as a nonconvex problem. Are you sure your model is convex? Have you got a formulation you can share?
0
Please sign in to leave a comment.
Comments
3 comments