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 continue
if category not in y: if category not in y:
y[category] = [] y[category] = []
if slack <= self.slack_tolerance: if 0 <= slack <= self.slack_tolerance:
y[category] += [[1]] y[category] += [[1]]
else: else:
y[category] += [[0]] y[category] += [[0]]

Loading…
Cancel
Save