def clear_objectives(self):
        for name in self._objectives.keys():
            self.remove_objective(name)
Removes all objectives.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/hasobjective.py/HasObjectives.clear_objectives