Organize test fixtures; handle infeasibility in DropRedundant

This commit is contained in:
2021-02-02 10:24:51 -06:00
parent 8153dfc825
commit 31ca45036a
10 changed files with 112 additions and 51 deletions

View File

@@ -173,7 +173,7 @@ class InternalSolver(ABC):
pass
@abstractmethod
def is_constraint_satisfied(self, cobj: Constraint) -> bool:
def is_constraint_satisfied(self, cobj: Constraint, tol: float = 1e-6) -> bool:
"""
Returns True if the current solution satisfies the given constraint.
"""