global_option

(function from pyomo.core.base.PyomoModel)

pyomo.core.base.PyomoModel.global_option(function, name, value)[source]

Declare the default value for a global Pyomo configuration option.

Example use:

@global_option('config.foo.bar', 1)
def functor():
    # ...