Skip to main content

Explicitly linearizing product of binary variables worsens performance

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Rutger,

    What could be the reason for this? Is it because Gurobi uses some more efficient tricks to linearize products than the ones that I applied?

    Yes, the reason is that Gurobi is able to use different reformulation techniques without the linearization. The parameter PreQLinearize controls the reformulation technique. When you linearize the bilinear terms by hand, you take away the possibility of applying a possibly more efficient reformulation technique.

    Best regards,
    Jaromił

    0
  • Rutger Mauritz
    • Gurobi-versary
    • First Question
    • First Comment

    Hello Jaromił, thank you for confirming this. In that case I will just stick with using the \(*\) operator for multiplications.

    0

Post is closed for comments.