ArticleslgStudy

science

Dual linear program

Dual linear program is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dual linear program rather than just read about it. In short: 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 ob…

Dual linear program — main illustration
Dual linear program — illustration

Key takeaways

  • Dual linear program belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dual linear program to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dual linear program from memory before moving on to harder problems.

Reference excerpt

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.

Worked examples

Example 1 — a first encounter with Dual linear program

Start with the simplest possible case. Write down what Dual linear program claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dual linear program before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dual linear program ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dual linear program

In research
Dual linear program appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dual linear program in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dual linear program is common in secondary-school and first-year university syllabi. It links to neighbouring topics Linear programming, so understanding it makes those chapters shorter.
In everyday life
Look for Dual linear program outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dual linear program” →

How to study Dual linear program in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dual linear program means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dual linear program out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dual linear program in simple terms?

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…

Why does Dual linear program matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dual linear program?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dual linear program.

Tags

  • Linear programming

Keep exploring