Skip to main content

General constraints Output

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

    The number of linear constraints is listed as "rows" in the log:

    Optimize a model with 25 rows, 28 columns and 65 nonzeros

    General constraints are counted separately from linear constraints. Piecewise-linear constraints, indicator constraints, and absolute value constraints are examples of general constraints.

    The log suggests you have 25 linear constraints and 10 general constraints. If this doesn't sound right, please post a minimal working example showing how you build the model.

    0

Post is closed for comments.