Skip to content

Commit

Permalink
Fix double-bounded variable condition; resolves issue mckib2#11
Browse files Browse the repository at this point in the history
  • Loading branch information
mckib2 committed Oct 29, 2020
1 parent 3c48c8f commit 331d5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glpk/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _convert_bounds(processed_bounds):
elif ub in {np.inf, None}:
# lb <= x < inf
bounds[ii] = (GLPK.GLP_LO, lb, 0)
elif ub < lb:
elif lb < ub:
# lb <= x <= ub
bounds[ii] = (GLPK.GLP_DB, lb, ub)
else:
Expand Down

0 comments on commit 331d5c9

Please sign in to comment.