mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-07 18:08:51 -06:00
Implement RelaxationComponent
This commit is contained in:
@@ -82,6 +82,12 @@ class Instance(ABC):
|
||||
"""
|
||||
return "default"
|
||||
|
||||
def get_constraint_features(self, cid):
|
||||
return np.zeros(1)
|
||||
|
||||
def get_constraint_category(self, cid):
|
||||
return cid
|
||||
|
||||
def has_static_lazy_constraints(self):
|
||||
return False
|
||||
|
||||
@@ -91,12 +97,6 @@ class Instance(ABC):
|
||||
def is_constraint_lazy(self, cid):
|
||||
return False
|
||||
|
||||
def get_lazy_constraint_features(self, cid):
|
||||
return np.zeros(1)
|
||||
|
||||
def get_lazy_constraint_category(self, cid):
|
||||
return cid
|
||||
|
||||
def find_violated_lazy_constraints(self, model):
|
||||
"""
|
||||
Returns lazy constraint violations found for the current solution.
|
||||
|
||||
Reference in New Issue
Block a user