InternalSolver: set_constraint_sense, set_constraint_rhs

This commit is contained in:
2020-12-05 21:09:35 -06:00
parent 8bb9996384
commit 5b5f4b7671
4 changed files with 36 additions and 7 deletions

View File

@@ -219,12 +219,6 @@ class BasePyomoSolver(InternalSolver):
def get_constraint_ids(self):
return list(self._cname_to_constr.keys())
def extract_constraint(self, cid):
raise Exception("Not implemented")
def is_constraint_satisfied(self, cobj):
raise Exception("Not implemented")
@abstractmethod
def _get_warm_start_regexp(self):
pass
@@ -249,8 +243,20 @@ class BasePyomoSolver(InternalSolver):
def _get_gap_tolerance_option_name(self):
pass
def extract_constraint(self, cid):
raise Exception("Not implemented")
def is_constraint_satisfied(self, cobj):
raise Exception("Not implemented")
def relax(self):
raise Exception("not implemented")
def get_constraint_slacks(self):
raise Exception("not implemented")
def set_constraint_sense(self, cid, sense):
raise Exception("Not implemented")
def set_constraint_rhs(self, cid, rhs):
raise Exception("Not implemented")