Lably
Skip to content

Dual linear program

Mathematical optimization concept

  • 13 min read
  • 8 chapters

Related on Lably

Through Linear programming, Linear combination and Square matrix

  • 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≥0

Now 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≥0

The 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.

Sign in to keep reading

7 more chapters are free with a Lably account.

More in Other