(function from pyomo.repn.util)
pyomo.repn.util
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__().
val
InvalidNumber.__str__()