get_objective

(function from pyomo.contrib.solver.util)

pyomo.contrib.solver.util.get_objective(block)[source]

Get current active objective on a block. If there is more than one active, return an error.