Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 11

Weak Duality Theorem in LP

Recommended resources

Hello! Welcome to the third lesson in our module on Linear Programming and Duality.

In the last lesson, we established the rules for constructing a dual linear program from a given primal LP. We saw that this dual problem arises from a systematic search for the tightest possible bound on the primal's objective function.

Today, we will formalize this relationship by stating and proving the Weak Duality Theorem. This theorem is the first pillar supporting the connection between linear programming and game theory. It provides a fundamental inequality that holds for any pair of feasible primal and dual solutions.

1. From Upper Bounds to a Formal Theorem

Let's quickly revisit the core intuition from our last session. For a maximization problem (the primal), we can find an upper bound on its optimal value by taking a non-negative linear combination of its constraints. The dual problem is the search for the best such combination—the one that yields the tightest (smallest) upper bound.

The video below provides a quick, concrete example of this process, which serves as an excellent warm-up for the formal proof to come.

Linear Programming (LP) Duality, part 1: Introduction and Physical Interpretation

This segment from the Algorithms Lab video demonstrates how to find upper bounds on a maximization LP's objective by combining its constraints. This is the intuitive basis for the dual problem and the Weak Duality Theorem.

Please watch the first 2 minutes and 50 seconds of the video. Notice how adding and scaling constraints leads to progressively tighter upper bounds on the objective value.

This process of finding bounds isn't just a useful trick; it's a guaranteed property. The Weak Duality Theorem formalizes this guarantee.


2. The Weak Duality Theorem

Let's consider a primal-dual pair in the standard form we've been using:

Primal (P)

Dual (D)

Theorem (Weak Duality): If is any feasible solution to the primal program (P) and is any feasible solution to the dual program (D), then:

In simple terms, the objective value of any feasible solution to the maximization primal is less than or equal to the objective value of any feasible solution to the minimization dual. This means the entire set of possible primal objective values lies to the left of the entire set of possible dual objective values on the number line.


3. Proof of the Weak Duality Theorem

The proof for this theorem is elegant and relies directly on the definitions of primal and dual feasibility. Given your background, the chain of logic using matrix-vector operations should be straightforward.

First, let's watch a short video that walks through the proof.

Linear Programming (LP) Duality, part 1: Introduction and Physical Interpretation

This video segment provides a concise, step-by-step proof of the Weak Duality Theorem.

Watch the segment from 07:52 to 09:54. The core of the proof is a short sequence of inequalities, so pay close attention to the justification for each step.

Now, let's carefully write out that same proof. Our goal is to show that .

  1. We start with the primal objective, .
  2. From the dual constraints, we know that . We can also write this as . Since is a feasible primal solution, we know . Multiplying an inequality by non-negative values preserves the direction of the inequality. Therefore, we can left-multiply by (or right-multiply by after transposing) to get:
  3. Using the property of transposes that , we can simplify the right-hand side: . This gives us:
  4. Now, we use the primal constraints. We know . Since is a feasible dual solution, we know . We can left-multiply by without flipping the inequality:
  5. Combining the steps, we have the full chain:
  6. Finally, note that is a scalar (a 1x1 matrix), so it is equal to its transpose, . This completes the proof:

For a slightly different presentation of the same proof and its surrounding context, you can review the following text.

[PDF] A Second Course in Algorithms Lecture #8: Linear Programming ...

This section from Tim Roughgarden's lecture notes provides a written version of the weak duality proof, which may help solidify your understanding.

Read the section titled '2 The Dual Linear Program'. The key derivation is the chain of inequalities labeled (14)-(16), which is exactly the proof we just discussed. The text culminates in the formal statement of 'Theorem 2.1 (Weak Duality)'.


4. Consequences of Weak Duality

The theorem itself is simple, but it has several powerful corollaries that are immediately useful.

  • Corollary 1: If the primal problem is unbounded (i.e., its objective can be made arbitrarily large), then the dual problem must be infeasible (have no solutions). Why? If the dual had even one feasible solution , its objective value would be a finite upper bound on the primal, which contradicts the primal being unbounded.

  • Corollary 2: Symmetrically, if the dual problem is unbounded (its objective can be made arbitrarily small), then the primal problem must be infeasible.

  • Corollary 3 (Optimality Certificate): If you find a feasible primal solution and a feasible dual solution such that their objective values are equal (), then both and must be optimal solutions for their respective problems. This is because weak duality guarantees no primal solution can be greater than and no dual solution can be less than .

This final corollary is extremely important. It gives us a way to "certify" that a solution is optimal without having to compare it to every other possible solution.

The following reading elaborates on these points.

[PDF] A Second Course in Algorithms Lecture #8: Linear Programming ...

This section of the same lecture notes explicitly states and explains these corollaries.

Please read section '5 Weak Duality', focusing on 'Corollary 5.2'. This provides a formal statement and clear explanation of the consequences of the theorem.


Conclusion

In this lesson, we have formally established the relationship between a primal LP and its dual.

Key Takeaways:

  • Weak Duality Theorem: For any feasible primal solution and any feasible dual solution , the inequality holds (for a max primal).
  • The proof is a direct consequence of the way the primal and dual problems are constructed.
  • This theorem provides an optimality certificate: if the objective values of a feasible primal-dual pair are equal, both solutions must be optimal.

Preview of the next lesson:

Weak duality tells us that the primal optimal value is less than or equal to the dual optimal value. This leaves open the possibility of a "duality gap" between them. The Strong Duality Theorem, which we will cover next, closes this gap. It states that if a linear program has an optimal solution, then so does its dual, and their optimal objective values are equal. This powerful result is the final piece of LP theory we need before we can prove the Minimax Theorem.