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

@@ -138,9 +138,11 @@ def run_basic_usage_tests(solver: InternalSolver) -> None:
lp_stats = solver.solve_lp()
assert not solver.is_infeasible()
assert lp_stats.lp_value is not None
assert lp_stats.lp_log is not None
assert_equals(round(lp_stats.lp_value, 3), 1287.923)
assert lp_stats.lp_log is not None
assert len(lp_stats.lp_log) > 100
assert lp_stats.lp_wallclock_time is not None
assert lp_stats.lp_wallclock_time > 0
# Fetch variables (after-load)
assert_equals(