(function from pyomo.contrib.solver.util)
pyomo.contrib.solver.util
Get current active objective on a block. If there is more than one active, return an error.