Add lp_stats to after-lp features

This commit is contained in:
2021-04-11 08:57:57 -05:00
parent 945f6a091c
commit 2bc1e21f8e
7 changed files with 12 additions and 4 deletions

View File

@@ -90,6 +90,7 @@ class BasePyomoSolver(InternalSolver):
return LPSolveStats(
lp_value=opt_value,
lp_log=streams[0].getvalue(),
lp_wallclock_time=results["Solver"][0]["Wallclock time"],
)
def _restore_integrality(self) -> None: