The objective function describes the optimization target. It is a function that maps into the scalar space and is to be maximized or minimized. Dependent on the type of optimization there are different objective functions to choose from.