Make xy_sample receive features, not instances

This commit is contained in:
2021-03-31 09:57:57 -05:00
parent 8fc9979b37
commit fe7bad885c
12 changed files with 158 additions and 119 deletions

View File

@@ -101,13 +101,13 @@ class Instance(ABC):
def get_constraint_category(self, cid: str) -> Optional[str]:
return cid
def has_static_lazy_constraints(self):
def has_static_lazy_constraints(self) -> bool:
return False
def has_dynamic_lazy_constraints(self):
return False
def is_constraint_lazy(self, cid):
def is_constraint_lazy(self, cid: str) -> bool:
return False
def find_violated_lazy_constraints(self, model):