Skip to content

Commit

Permalink
Try to fix gurobi issue with numericFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
VonAlphaBisZulu committed Jul 19, 2024
1 parent b639a21 commit 723ef7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions straindesign/gurobi_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@ def populate(self, n) -> Tuple[List, float, float]:
else:
self.params.PoolSolutions = n
self.params.PoolSearchMode = 2
self.params.NumericFocus = 2
self.optimize() # call parent solve function (that was overwritten in this class)
self.params.PoolSearchMode = 0
self.params.NumericFocus = 0
status = self.Status
if status in [2, 10, 13, 15]: # solution integer optimal
min_cx = self.ObjVal
Expand Down

0 comments on commit 723ef7b

Please sign in to comment.