SuppressConstantObjectiveWarning

(class from pyomo.contrib.preprocessing.util)

class pyomo.contrib.preprocessing.util.SuppressConstantObjectiveWarning[source]

Bases: LoggingIntercept

Suppress the infeasible model warning message from solve().

The “WARNING: Constant objective detected, replacing with a placeholder” warning message from calling solve() is often unwanted, but there is no clear way to suppress it.

TODO need to fix this so that it only suppresses the desired message.

__init__()[source]

Methods

__init__()

Member Documentation