Skip to main content

Gurobi combine two constraints

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.
  • Matthias Miltenberger
    • Gurobi Staff

    It may not be possible to combine such constraints into one. It may also not be beneficial for performance.

    If you have parallel constraints in your model, you can combine them, but the same is not necessarily true for arbitrary constraints - even if they contain the same set of variables.

    In any case, you can rely on Gurobi's presolving techniques to reduce the problem in a way that is both numerical stable and improves performance.

    If you want us to inspect a specific model instance, please open a Support ticket so we can handle this internally.

    Cheers,
    Matthias

    0

Post is closed for comments.