Convert LPSolveStats into dataclass

This commit is contained in:
2021-04-11 08:41:50 -05:00
parent 6afdf2ed55
commit 945f6a091c
7 changed files with 24 additions and 28 deletions

View File

@@ -147,10 +147,10 @@ class GurobiSolver(InternalSolver):
opt_value = None
if not self.is_infeasible():
opt_value = self.model.objVal
return {
"LP value": opt_value,
"LP log": log,
}
return LPSolveStats(
lp_value=opt_value,
lp_log=log,
)
@overrides
def solve(