diff --git a/glpk/_utils.py b/glpk/_utils.py index b868703..33cd312 100644 --- a/glpk/_utils.py +++ b/glpk/_utils.py @@ -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: