Formulation of the Objective Function