updates ObjectiveFunction.py