Skip to main content

Inequality constraints of convex relaxation with McCormick envelope

Answered

Comments

1 comment

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    My problem is that I don't know **how to specify the inequality constraints matrix B and vector b_ineq**.

    I strongly recommend to have a look at our Python webinar series starting with Introduction to Modeling with Python.

    This should be a good starting point when beginning to work with gurobipy.

    How can I specify the known bounds (0 and 10) for x1,x2 and x3 and the calculated ones (as in the theory pasted above) in B and b_ineq?

    Non-default bounds for variables can be set while adding them via the addVar(s) method or later via the corresponding attributes.

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.