mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Fix MyPy errors
This commit is contained in:
@@ -184,6 +184,7 @@ class LearningSolver:
|
|||||||
logger.info("Solving root LP relaxation...")
|
logger.info("Solving root LP relaxation...")
|
||||||
lp_stats = self.internal_solver.solve_lp(tee=tee)
|
lp_stats = self.internal_solver.solve_lp(tee=tee)
|
||||||
stats.update(cast(LearningSolveStats, lp_stats.__dict__))
|
stats.update(cast(LearningSolveStats, lp_stats.__dict__))
|
||||||
|
assert lp_stats.lp_wallclock_time is not None
|
||||||
logger.info(
|
logger.info(
|
||||||
"LP relaxation solved in %.2f seconds" % lp_stats.lp_wallclock_time
|
"LP relaxation solved in %.2f seconds" % lp_stats.lp_wallclock_time
|
||||||
)
|
)
|
||||||
@@ -250,6 +251,7 @@ class LearningSolver:
|
|||||||
user_cut_cb=user_cut_cb,
|
user_cut_cb=user_cut_cb,
|
||||||
lazy_cb=lazy_cb,
|
lazy_cb=lazy_cb,
|
||||||
)
|
)
|
||||||
|
assert mip_stats.mip_wallclock_time is not None
|
||||||
logger.info("MIP solved in %.2f seconds" % mip_stats.mip_wallclock_time)
|
logger.info("MIP solved in %.2f seconds" % mip_stats.mip_wallclock_time)
|
||||||
stats.update(cast(LearningSolveStats, mip_stats.__dict__))
|
stats.update(cast(LearningSolveStats, mip_stats.__dict__))
|
||||||
stats["Solver"] = "default"
|
stats["Solver"] = "default"
|
||||||
|
|||||||
Reference in New Issue
Block a user