(function from pyomo.contrib.solver.solvers.knitro.utils)
pyomo.contrib.solver.solvers.knitro.utils
Retrieve all active ObjectiveData objects from a Pyomo Block.
block (BlockData) – The Pyomo block to search for objectives.
A sorted list of all active objectives in the block.
list[ObjectiveData]