JuMP optimize! used two much time and memory to solve a cplex model, do anyone knows why?

I have the same issue, solve time of ~600s with the normal Model(CPLEX.Optimizer) (btw, it’s roughly 3s with Model(Gurobi.Optimizer)) vs. 1.14s with the direct_model. Unfortunately, I can’t give the model specification and don’t currently have time to work on a MWE (will try later), but this is the requested output:

A JuMP Model
Maximization problem with:
Variables: 279072
Objective function type: AffExpr
AffExpr-in-MathOptInterface.EqualTo{Float64}: 18438 constraints
AffExpr-in-MathOptInterface.GreaterThan{Float64}: 864 constraints
AffExpr-in-MathOptInterface.LessThan{Float64}: 9504 constraints
VariableRef-in-MathOptInterface.GreaterThan{Float64}: 279072 constraints
Model mode: AUTOMATIC
CachingOptimizer state: EMPTY_OPTIMIZER
Solver name: CPLEX
Names registered in the model: …

1 Like