build_compression_mask_for_finite_values
(function from pyomo.contrib.pynumero.interfaces.utils)
- pyomo.contrib.pynumero.interfaces.utils.build_compression_mask_for_finite_values(vector)[source]
Creates masks for converting from the full vector of values to the vector that contains only the finite values. This is typically used to convert a vector of bounds (that may contain np.inf and -np.inf) to only the bounds that are finite.