Use compact variable features everywhere

This commit is contained in:
2021-04-15 09:49:35 -05:00
parent fec0113722
commit 95e326f5f6
11 changed files with 147 additions and 374 deletions

View File

@@ -9,7 +9,7 @@ from typing import Any, Dict, List, Optional
from overrides import EnforceOverrides
from miplearn.features import Constraint, Variable, VariableFeatures
from miplearn.features import Constraint, VariableFeatures
from miplearn.instance.base import Instance
from miplearn.types import (
IterationCallback,
@@ -17,7 +17,6 @@ from miplearn.types import (
BranchPriorities,
UserCutCallback,
Solution,
VariableName,
)
logger = logging.getLogger(__name__)
@@ -236,10 +235,6 @@ class InternalSolver(ABC, EnforceOverrides):
"""
return False
@abstractmethod
def get_variables_old(self, with_static: bool = True) -> Dict[str, Variable]:
pass
@abstractmethod
def get_variables(
self,