mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-07 01:48:51 -06:00
Add more variable features
This commit is contained in:
@@ -8,7 +8,7 @@ from typing import Any, Dict, List, Optional
|
||||
|
||||
from overrides import EnforceOverrides
|
||||
|
||||
from miplearn.features import Constraint
|
||||
from miplearn.features import Constraint, Variable
|
||||
from miplearn.instance.base import Instance
|
||||
from miplearn.types import (
|
||||
LPSolveStats,
|
||||
@@ -247,9 +247,21 @@ class InternalSolver(ABC, EnforceOverrides):
|
||||
"""
|
||||
return False
|
||||
|
||||
@abstractmethod
|
||||
def get_variables(self) -> Dict[str, Variable]:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_constraint_attrs(self) -> List[str]:
|
||||
"""
|
||||
Returns a list of constraint attributes supported by this solver.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_variable_attrs(self) -> List[str]:
|
||||
"""
|
||||
Returns a list of variable attributes supported by this solver.
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user