Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In constrained
optimization, it is often possible to convert the primal problem (i.e.
the original form of the optimization problem) to a dual form, which is
termed a dual problem. Usually "dual problem" refers to the "Lagrangian
dual problem" but other dual problems are used, for example, the Wolfe
dual problem and the Fenchel dual problem. The Lagrangian dual problem
is obtained by forming the Lagrangian, using nonnegative Lagrangian
multipliers to add the constraints to the objective function, and then
solving for some primal variable values that minimize the Lagrangian.
This solution gives the primal variables as functions of the Lagrange
multipliers, which are called dual variables, so that the new problem is
to maximize the objective function with respect to the dual variables
under the derived constraints on the dual variables (including at least
the nonnegativity). The solution of the dual problem provides an upper
bound to the solution of the primal problem (see e.g. (Boyd 2004)).
However in general the optimal values of the primal and dual problems
need not be equal. Their difference is called the "duality gap."