In order to find the optimal solution, we need some way of measuring the quality of any solution. This is done via what is known as an objective function, with “objective” used in the sense of a goal. The objective function is one of the most fundamental components of a machine learning problem, in that it provides the basic, formal specification of the problem… Daniel Kronovet