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

master
Alinson S. Xavier 5 years ago
parent ec00f7555a
commit 317e16d471

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

Loading…
Cancel
Save