pyomo_callback

(function from pyomo.scripting.interface)

pyomo.scripting.interface.pyomo_callback(name)[source]

This is a decorator that declares a function to be a callback function. The callback functions are added to the solver when run from the pyomo script.

Example:

@pyomo_callback('cut-callback')
def my_cut_generator(solver, model):
    ...