value_no_exception

(function from pyomo.contrib.viewer.report)

pyomo.contrib.viewer.report.value_no_exception(c, div0=None)[source]

Get value and ignore most exceptions (including division by 0).

Parameters:

c – a Pyomo component to get the value of

Returns:

A value, could be None