mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
ConvertTight: Don't take any action on constraints with negative slack
This commit is contained in:
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user