Skip to content

Commit 7b4e775

Browse files
committed
check for out of memory error
Former-commit-id: 0fd9620 [formerly 7544015] Former-commit-id: 2f15848
1 parent 76eb296 commit 7b4e775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mip/gurobi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ def callback(p_model: CData,
535535
if status == 10009:
536536
raise Exception('gurobi found but license not accepted,\
537537
please check it')
538+
elif status == 10001:
539+
raise Exception('out of memory error')
538540

539541
status = self.get_int_attr("Status")
540542
# checking status for MIP optimization which

0 commit comments

Comments
 (0)