mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Implement preliminary version of static lazy component
This commit is contained in:
@@ -8,6 +8,10 @@ from abc import ABC, abstractmethod
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ExtractedConstraint(ABC):
|
||||
pass
|
||||
|
||||
|
||||
class InternalSolver(ABC):
|
||||
"""
|
||||
Abstract class representing the MIP solver used internally by LearningSolver.
|
||||
@@ -134,6 +138,27 @@ class InternalSolver(ABC):
|
||||
"""
|
||||
pass
|
||||
|
||||
# @abstractmethod
|
||||
def get_constraint_names(self):
|
||||
"""
|
||||
Returns a list of strings, containing the name of each constraint in the
|
||||
model.
|
||||
"""
|
||||
pass
|
||||
|
||||
# @abstractmethod
|
||||
def extract_constraint(self, cname):
|
||||
"""
|
||||
Removes a given constraint from the model and returns an object `c` which
|
||||
can be used to verify if the removed constraint is still satisfied by
|
||||
the current solution, using `is_constraint_satisfied(c)`, and can potentially
|
||||
be re-added to the model using `add_constraint(c)`.
|
||||
"""
|
||||
pass
|
||||
|
||||
def is_constraint_satisfied(self, c):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def set_threads(self, threads):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user