Mathematical optimization or mathematical programming is the selection of a best element from some set of available alternatives.