build_bounds_mask

(function from pyomo.contrib.pynumero.interfaces.utils)

pyomo.contrib.pynumero.interfaces.utils.build_bounds_mask(vector)[source]

Creates masks for converting from the full vector of bounds that may contain -np.inf or np.inf to a vector of bounds that are finite only.