What does gurobipy.GurobiError mean?
AnsweredI receive the following error message when I execute my Python code using Gurobi version 9.5.1 and Pycharm 2021.3.3. What does it mean? Could you please assist me on this one?
C:\Python310\python.exe D:/Thesis/IRP/APYTHON/Multi_Product/main.py
Set parameter Username
Academic license - for non-commercial use only - expires 2022-07-22
Set parameter LazyConstraints to value 1
Gurobi Optimizer version 9.5.1 build v9.5.1rc2 (win64)
Thread count: 4 physical cores, 8 logical processors, using up to 8 threads
Optimize a model with 4344009 rows, 4303410 columns and 21606113 nonzeros
Model fingerprint: 0xa26bcdb7
Variable types: 203010 continuous, 4100400 integer (4060200 binary)
Coefficient statistics:
Matrix range [1e+00, 2e+04]
Objective range [3e+04, 4e+04]
Bounds range [1e+00, 2e+00]
RHS range [1e+00, 2e+04]
Presolve removed 2204 rows and 20905 columns (presolve time = 5s) ...
Presolve removed 2827818 rows and 2787012 columns (presolve time = 10s) ...
Presolve removed 2827869 rows and 2787062 columns (presolve time = 15s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 20s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 25s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 30s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 35s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 40s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 45s) ...
Presolve removed 2827883 rows and 2787062 columns (presolve time = 50s) ...
Presolve removed 2848353 rows and 2787066 columns (presolve time = 55s) ...
Presolve removed 2848353 rows and 2787066 columns (presolve time = 60s) ...
Presolve removed 2848353 rows and 2787066 columns (presolve time = 65s) ...
Presolve removed 2848353 rows and 2787066 columns (presolve time = 70s) ...
Presolve removed 2848353 rows and 2787066 columns (presolve time = 75s) ...
Presolve removed 2848353 rows and 2787066 columns (presolve time = 81s) ...
Presolve removed 2848358 rows and 2787066 columns (presolve time = 85s) ...
Presolve removed 2848362 rows and 2787070 columns (presolve time = 90s) ...
Presolve removed 2848198 rows and 2786906 columns
Presolve time: 91.99s
Presolved: 1495811 rows, 1516504 columns, 7169878 nonzeros
Variable types: 102447 continuous, 1414057 integer (1393599 binary)
Found heuristic solution: objective 7.504309e+09
Deterministic concurrent LP optimizer: primal simplex, dual simplex, and barrier
Showing barrier log only...
Explored 0 nodes (0 simplex iterations) in 128.27 seconds (85.89 work units)
Thread count was 1 (of 8 available processors)
Solution count 0
Solve interrupted (error code 10001)
Best objective -, best bound -, gap -
User-callback calls 9142, time in user-callback 16.89 sec
Traceback (most recent call last):
File "D:\Thesis\IRP\APYTHON\Multi_Product\main.py", line 352, in <module>
model.optimize(Subtour_Elimination)
File "src\gurobipy\model.pxi", line 864, in gurobipy.Model.optimize
gurobipy.GurobiError
Process finished with exit code 1

-
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Could you please share a minimal reproducible example of the code which throws this error? We will then be better positioned to help you.
Best regards
Jonasz0 -
Error code 10001 refers to and out of memory condition, cf. Documentation of error codes.
You could try one of the points listed in How do I avoid an out-of-memory condition? However, in your case, I think it is best to just switch to a machine with more memory.
Best regards,
Jaromił0
Post is closed for comments.
Comments
3 comments