ConvertTight: Don't take any action on constraints with negative slack

This commit is contained in:
2021-01-07 11:03:02 -06:00
parent ec00f7555a
commit 317e16d471

View File

@@ -113,7 +113,7 @@ class ConvertTightIneqsIntoEqsStep(Component):
continue
if category not in y:
y[category] = []
if slack <= self.slack_tolerance:
if 0 <= slack <= self.slack_tolerance:
y[category] += [[1]]
else:
y[category] += [[0]]