mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Make progress bars optional; other minor fixes
This commit is contained in:
@@ -439,14 +439,16 @@ class BasePyomoSolver(InternalSolver):
|
||||
tee=True,
|
||||
warmstart=self._is_warm_start_available,
|
||||
)
|
||||
self._termination_condition = results["Solver"][0]["Termination condition"]
|
||||
total_wallclock_time += results["Solver"][0]["Wallclock time"]
|
||||
if self.is_infeasible():
|
||||
break
|
||||
should_repeat = iteration_cb()
|
||||
if not should_repeat:
|
||||
break
|
||||
log = streams[0].getvalue()
|
||||
node_count = self._extract_node_count(log)
|
||||
ws_value = self._extract_warm_start_value(log)
|
||||
self._termination_condition = results["Solver"][0]["Termination condition"]
|
||||
lb, ub = None, None
|
||||
self._has_mip_solution = False
|
||||
self._has_lp_solution = False
|
||||
|
||||
Reference in New Issue
Block a user