In primary case, an optimization problem involves maximizing or minimizing an actual function by methodically choosing input values from within the allowed set and computing on-line of the functionality. In mathematics, computer science and operations research, mathematical optimization (alternatively, optimization or precise programming) is picking a a best component from some group of available alternatives.