val2str

(function from pyomo.repn.util)

pyomo.repn.util.val2str(val)[source]

Converts an object to str with special handling for InvalidNumber

This will convert the val to a string. If val is an InvalidNumber, the conversion to string will bypass the exception raised by InvalidNumber.__str__().