How to solve "Warning: Model contains large bounds"
AnsweredHi,
I was trying to run a MIP task, and I got "Warning: Model contains large bounds" in the log file. I am wondering what does it mean, does it affect my MIP task output, and how to fix this problem? Thanks!
I set my integer variables to be in the range from 0 to GRB_MAXINT.
Here is the log:
Gurobi 9.0.1 (linux64, C++) logging started Mon Apr 12 02:26:20 2021
Gurobi Optimizer version 9.0.1 build v9.0.1rc0 (linux64)
Optimize a model with 15 rows, 3114 columns and 6257 nonzeros
Model fingerprint: 0x7dfe54bd
Variable types: 1 continuous, 3113 integer (0 binary)
Coefficient statistics:
Matrix range [2e-03, 1e+00]
Objective range [1e+00, 2e+00]
Bounds range [1e+00, 2e+09]
RHS range [1e-02, 1e+00]
Warning: Model contains large bounds
Presolve removed 2 rows and 0 columns
Presolve time: 0.00s
Explored 0 nodes (0 simplex iterations) in 0.00 seconds
Thread count was 1 (of 24 available processors)
Solution count 0
Model is infeasible
Best objective -, best bound -, gap -
-
Official comment
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?. -
Hi,
Do I understand correctly that you are explicitly setting the upper bounds to MAXINT here? In that case, you should just leave the variables unbounded. This should remove the warning. (Note though that unbounded integer variables may make a model very difficult to solve. Your model is still quite small, so this may not be an issue, but for bigger models it might.)
Silke
0
Post is closed for comments.
Comments
2 comments