(function from pyomo.contrib.alternative_solutions.aos_utils)
pyomo.contrib.alternative_solutions.aos_utils
Finds and returns the active objective function for a model. Currently assume that there is exactly one active objective.