diff --git a/mpisppy/cylinders/reduced_costs_spoke.py b/mpisppy/cylinders/reduced_costs_spoke.py index 6f066c0b..d452c012 100644 --- a/mpisppy/cylinders/reduced_costs_spoke.py +++ b/mpisppy/cylinders/reduced_costs_spoke.py @@ -145,7 +145,7 @@ def extract_and_store_reduced_costs(self): # solver takes care of sign of rc, based on lb, ub and max,min # rc can be of wrong sign if numerically 0 - accepted here, checked in extension - if (xb - xvar.lb <= self.bound_tol) or (xvar.ub - xb <= self.bound_tol): + if (xvar.lb is not None and xb - xvar.lb <= self.bound_tol) or (xvar.ub is not None and xvar.ub - xb <= self.bound_tol): rc[ci] += sub._mpisppy_probability * sub.rc[xvar] # not close to either bound -> rc = nan else: