Skip to main content

Issue with binary variables

Answered

Comments

1 comment

  • 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

Please sign in to leave a comment.