The objective function describes the optimization target. It is a function that maps into the scalar space and is to be maximized or minimzed. Dependent on the type of optimization there are different objective functions to choose from.
Objective Function for controller based shape optimization Objective Function for sensitivity based shape optimization