Skip to content

Gurobi 12.0.1 different (and much slower) than 12.0.0 #267

@4er4er4er

Description

@4er4er4er

The attached Gurobi_netflowcompl.zip appears to generate a quite different problem for Gurobi 12.0.0 (20241119) than for 12.0.1 (20250429) -- with considerable advantage to 12.0.0. Here's the relevant problem information from the logs:

*** 12.0.0
Optimize a model with 247 rows, 4236 columns and 2762 nonzeros

Model has 2760 simple general constraints
  184 AND, 368 OR, 2208 INDICATOR
Model has 1 general nonlinear constraint (0 nonlinear terms)
Variable types: 1658 continuous, 2578 integer (0 binary)

Coefficient statistics:
  Matrix range     [1e+00, 1e+00]
  Objective range  [8e-01, 1e+00]
  Bounds range     [1e+00, 4e+04]
  RHS range        [1e+02, 1e+03]
  GenCon rhs range [1e-04, 6e+02]
  GenCon coe range [1e+00, 1e+00]

Presolve added 1655 rows and 0 columns
Presolve removed 0 rows and 2396 columns
Presolved: 1902 rows, 1840 columns, 7360 nonzeros
Variable types: 1472 continuous, 368 integer (368 binary)

*** 12.0.1
Optimize a model with 247 rows, 4236 columns and 2762 nonzeros

Model has 2576 simple general constraints
  184 AND, 368 OR, 2024 INDICATOR
Model has 1 general nonlinear constraint (0 nonlinear terms)
Variable types: 1843 continuous, 2393 integer (0 binary)

Coefficient statistics:
  Matrix range     [1e+00, 1e+00]
  Objective range  [8e-01, 1e+00]
  Bounds range     [1e+00, 4e+04]
  RHS range        [1e+02, 1e+03]
  GenCon rhs range [3e+02, 6e+02]
  GenCon coe range [1e+00, 1e+00]

Presolve added 2023 rows and 0 columns
Presolve removed 0 rows and 2212 columns
Presolved: 2270 rows, 2024 columns, 7912 nonzeros
Variable types: 1472 continuous, 552 integer (552 binary)

AMPL's show_stats listing is the same for both,

1288 variables, all nonlinear
245 algebraic constraints, all linear; 2576 nonzeros
	245 inequality constraints
185 logical constraints
1 nonlinear objective; 1288 nonzeros.

and they get the same optimal values:

Gurobi 12.0.0: optimal solution; objective 54284.70288
806901 simplex iterations
22627 branching nodes

Gurobi 12.0.1: optimal solution; objective 54284.70288
1.52992e+07 simplex iterations
209168 branching nodes
absmipgap=4.64617, relmipgap=8.5589e-05

The complete logs Gurobi12.0.0.txt and Gurobi12.0.1.txt are also attached.

This is an artificial example for a talk, but I am reporting it in case it might be evidence for some more serious problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions