Skip to main content

Issue with binary variables

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff 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?.
  • Eli Towle
    Gurobi Staff Gurobi Staff

    Hi Mirna,

    For numerical reasons, an integrality constraint on a variable is considered satisfied if the variable value is "close enough" to an integer. By default, this tolerance is 1e-5. You can try setting the IntFeasTol parameter to a smaller value (e.g., 1e-8) to tighten this tolerance. Note that in some cases, tightening this tolerance too much can have a significant impact on the solve time.

    I hope this helps!

    Eli

    1

Post is closed for comments.