Question: what is the purpose of objective function?
Answer: The objective function is a means to maximize (or minimize) something. This something is a numeric value: in the real world it could be the cost of a project, a production quantity, profit value, or even materials saved from a streamlined process.