The dual of a given linear program (LP) is another LP that is derived from the original (the primal) LP in the following schematic way:
Each variable in the primal LP becomes a constraint in the dual LP; Each constraint in the primal LP becomes a variable in the dual LP; The objective direction is inversed – maximum in the primal becomes minimum in the dual and vice versa. The weak duality theorem states that the objective value of the dual LP at any feasible solution is always a bound on the objective of the primal LP at any feasible solution (upper or lower bound, depending on whether it is a maximization or minimization problem). In fact, this bounding property holds for the optimal values of the dual and primal LPs. The strong duality theorem states that, moreover, if the primal has an optimal solution then the dual has an optimal solution too, and the two optima are equal. These theorems belong to a larger class of duality theorems in optimization. The strong duality theorem is one of the cases in which the duality gap (the gap between the optimum of the primal and the optimum of the dual) is 0.
Form of the dual LP Suppose we have the linear program: Maximize cTx subject to Ax ≤ b, x ≥ 0.We would like to construct an upper bound on the solution. So we create a linear combination of the constraints, with positive coefficients, such that the coefficients of x in the constraints are at least cT. This linear combination gives us an upper bound on the objective. The variables y of the dual LP are the coefficients of this linear combination. The dual LP tries to find such coefficients that minimize the resulting upper bound. This gives the following LP:Minimize bTy subject to ATy ≥ c, y ≥ 0 This LP is called the dual of the original LP.
Interpretation The duality theorem has an economic interpretation. If we interpret the primal LP as a classical "resource allocation" problem, its dual LP can be interpreted as a "resource valuation" problem. Consider a factory that is planning its production of goods 1,…,n, which it produces using raw materials 1,…,m. To produce one unit of good i, the factory needs Aji≥0 units of raw material j. Let x be the factory's production schedule (produce xi units of good i), let c≥0 be the market prices (a unit of good i can sell for ci), and let b≥0 be the amounts of raw material that the factory has available (it has bj units of raw material j). The constraints are that x≥0 (it cannot produce negative goods), and that the factory can only produce as many goods as is allowed by its amounts of raw materials, i.e., Ax≤b. The factory wishes to maximize its total revenue c⊤x.
Thus, the constrained revenue maximization is the primal LP:Maximize c⊤x subject to Ax≤b,x≥0Now consider another factory that wishes to purchase the entire stock of raw material b from the previous factory. It offers a price vector of y (a unit of raw material i for yi). For the offer to be accepted, it should be the case that ATy≥c, as otherwise the first factory could earn more cash by producing a certain product than selling off the raw material used to produce the goods. It also should be y≥0, since the first factory would not sell its materials for a negative price. The second factory wishes to minimize the amount b⊤y that it pays for the first factory's entire stock of raw materials. Then, the second factory's optimization problem is the dual LP:Minimize b⊤y subject to A⊤y≥c,y≥0The duality theorem states that the duality gap between the two LP problems is non-negative. In other words, an optimal solution to this dual LP is at least as large as an optimal solution to the primal LP, meaning that an optimal offer b⊤y by the second factory will always be no less than the first factory's optimal revenue c⊤x. If the first factory is given an offer to buy its entire stock of raw material, at a per-item price of y, such that A⊤y≥c,y≥0, then it should take the offer. It will make at least as much revenue as it could producing finished goods. The strong duality theorem further states that the duality gap is zero. With strong duality, the dual solution y∗ is, economically speaking, the "equilibrium price" (see shadow price) for the raw material that a factory with production matrix A and raw material stock b would accept for raw material, given the market price for finished goods c. (Note that y∗ may not be unique, so the equilibrium price may not be fully determined by A, b, and c.) To see why, consider if the raw material prices y≥0 are such that (ATy)i<ci for some i, then the factory would purchase more raw material to produce more of good i, since the prices are "too low". Conversely, if the raw material prices satisfy ATy≥c,y≥0, but does not minimize bTy, then the factory would make more money by selling its raw material than producing goods, since the prices are "too high". At equilibrium price y∗, the factory cannot increase its profit by purchasing or selling off raw material. The duality theorem has a physical interpretation too.
Constructing the dual LP In general, given a primal LP, the following algorithm can be used to construct its dual LP. The primal LP is defined by:
A set of n variables: x1,…,xn. For each variable xi, a sign constraint – it should be either non-negative (xi≥0), or non-positive (xi≤0), or unconstrained (xi∈ℝ). An objective function: maximize c1x1+⋯+cnxn A list of m constraints. Each constraint j is: aj1x1+⋯+ajnxn⪋bjwhere the symbol before the bj can be one of ≥ or ≤ or =. The dual LP is constructed as follows.
Each primal constraint becomes a dual variable. So there are m variables: y1,…,ym. The sign constraint of each dual variable is "opposite" to the sign of its primal constraint. So "≥bj" becomes yj≤0 and "≤bj" becomes yj≥0 and "=bj" becomes yj∈ℝ. The dual objective function is minimize b1y1+⋯+bmym Each primal variable becomes a dual constraint. So there are n constraints. The coefficient of a dual variable in the dual constraint is the coefficient of its primal variable in its primal constraint. So each constraint i is: a1iy1+⋯+amiym⪋ci, where the symbol before the ci is similar to the sign constraint on variable i in the primal LP. So xi≤0 becomes "≤ci" and xi≥0 becomes "≥ci" and xi∈ℝ becomes "=ci". From this algorithm, it is easy to see that the dual of the dual is the primal.
… excerpt ends here. Continue reading the full article.
