mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 17:38:51 -06:00
Convert MIPSolveStats into dataclass
This commit is contained in:
@@ -14,7 +14,6 @@ from miplearn.instance.base import Instance
|
||||
from miplearn.types import (
|
||||
IterationCallback,
|
||||
LazyCallback,
|
||||
MIPSolveStats,
|
||||
BranchPriorities,
|
||||
UserCutCallback,
|
||||
Solution,
|
||||
@@ -31,6 +30,17 @@ class LPSolveStats:
|
||||
lp_wallclock_time: Optional[float] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class MIPSolveStats:
|
||||
mip_lower_bound: Optional[float]
|
||||
mip_log: str
|
||||
mip_nodes: Optional[int]
|
||||
mip_sense: str
|
||||
mip_upper_bound: Optional[float]
|
||||
mip_wallclock_time: float
|
||||
mip_warm_start_value: Optional[float]
|
||||
|
||||
|
||||
class InternalSolver(ABC, EnforceOverrides):
|
||||
"""
|
||||
Abstract class representing the MIP solver used internally by LearningSolver.
|
||||
|
||||
Reference in New Issue
Block a user