In many branches of science, including mathematics, mathematical optimization is a branch that is about finding the element that gives an optimal solution to a problem, given some criteria. In the simplest case, this means that a function needs to be minimized or maximized. 