Skip to content

Commit f6c95a9

Browse files
committed
Fix: use set, not get for set_max_solutions
1 parent 62eed99 commit f6c95a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mip/highs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def get_max_solutions(self: "SolverHighs") -> int:
547547
return self._get_int_option_value("mip_max_improving_sols")
548548

549549
def set_max_solutions(self: "SolverHighs", max_solutions: int):
550-
self._get_int_option_value("mip_max_improving_sols", max_solutions)
550+
self._set_int_option_value("mip_max_improving_sols", max_solutions)
551551

552552
def get_pump_passes(self: "SolverHighs") -> int:
553553
raise NotImplementedError("HiGHS doesn't support pump passes.")

0 commit comments

Comments
 (0)