Skip to main content

General Constraint vs Linear Constraint



1 comment

  • Official comment
    Tobias Achterberg
    Gurobi Staff Gurobi Staff

    General Constraints are internally translated into linear and SOS constraints, depending on the General Constraint type. If you use the same linearization yourself, there should be no structural performance difference. But it could be that your linearization is better (because you exploit problem knowledge that Gurobi does not have), or that Gurobi's linearization is better (because it exploits tighter bounds of the variables that have been found during the presolve step).

    Best regards,



Please sign in to leave a comment.