Skip to main content

Inequality constraints of convex relaxation with McCormick envelope

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • 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

Post is closed for comments.