Implement RelaxationComponent

This commit is contained in:
2020-10-08 15:03:17 -05:00
parent 3c4045f64b
commit 1b6982ae8d
11 changed files with 411 additions and 36 deletions

View File

@@ -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.