Skip to content

Commit 8b917fc

Browse files
rschwarzkbrix2000
andauthored
Set gap limits in optimize()
Co-authored-by: kbrix2000 <[email protected]>
1 parent 9945ed1 commit 8b917fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mip/highs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ def optimize(
440440
# in self._var_type.
441441
self._all_cols_continuous()
442442

443+
self.set_mip_gap(self.model.max_mip_gap)
444+
self.set_mip_gap_abs(self.model.max_mip_gap_abs)
445+
443446
check(self._lib.Highs_run(self._model))
444447

445448
# store solution values for later access

0 commit comments

Comments
 (0)