We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3235b75 commit d42c496Copy full SHA for d42c496
src/pyscipopt/recipes/infeasibilities.py
@@ -36,7 +36,7 @@ def get_infeasible_constraints(orig_model: Model, verbose: bool = False):
36
37
n_infeasibilities_detected = 0
38
for c in binary:
39
- if model.isInfinity(binary[c]) or model.isGT(model.getVal(binary[c]), 0):
+ if model.isInfinity(model.getVal(binary[c])) or model.isGT(model.getVal(binary[c]), 0):
40
n_infeasibilities_detected += 1
41
print("Constraint %s is causing an infeasibility." % c)
42
0 commit comments