MATH 4810Computational Modelling

Module 06 · Unit 6.2

Duality and Sensitivity

Every linear program has a dual. The dual supplies marginal values and the ranges within which those values remain valid — the information a decision-maker actually needs.

3 lessons ≈ 9 hours Laboratory 12 Feeds Assignment 5
  1. Unit 6.1
  2. Unit 6.2

§ Overview

A linear program is a problem of the form "maximize the objective subject to the constraints." Every such problem has a companion problem — its dual — of the form "minimize a weighted cost of the constraints." The two problems are intimately connected, and the connection is one of the most useful results in optimization: the fundamental duality theorem.

The dual is not just a mathematical curiosity. Its variables have a direct interpretation as marginal values: the change in the optimal objective that would result from relaxing a constraint by one unit. These are the shadow prices that decision-makers need in order to know what a constraint is costing them. The reduced costs of the primal variables have a parallel interpretation as opportunity costs.

The final piece is sensitivity: the ranges within which the coefficients and right-hand sides can change without altering the optimal basis. Within those ranges, the shadow prices and reduced costs are valid. Outside them, they change, and the decision-maker's interpretation must change too.

Lesson 1

Dual models and the fundamental duality theorem

Lesson 2

Shadow prices and reduced costs

Lesson 3

Sensitivity ranges and scenario analysis

Laboratory 12

Duality and sensitivity analysis

§ Learning outcomes

By the end of Unit 6.2 you will be able to

  • Construct the dual of a primal linear program.
  • State and explain the fundamental duality theorem.
  • Verify strong duality on a small instance.
  • Interpret shadow prices as marginal values of constraints.
  • Interpret reduced costs as opportunity costs of variables.
  • Compute and interpret sensitivity ranges for objective coefficients and right-hand sides.
  • Use shadow prices and sensitivity ranges to support a decision.

§ Lessons

§ The duality theorem

The fundamental duality theorem relates a primal LP and its dual. For the standard-form pair:

Primal:  maximize    cᵀ x
         subject to  A x ≤ b
                     x ≥ 0

Dual:    minimize    bᵀ y
         subject to  Aᵀ y ≥ c
                     y ≥ 0

The theorem states three things:

  • Weak duality. For any feasible x of the primal and any feasible y of the dual, cᵀ x ≤ bᵀ y. The primal objective is always bounded above by the dual objective.
  • Strong duality. If the primal has an optimal solution x*, then the dual has an optimal solution y*, and cᵀ x* = bᵀ y*. The two optimal objective values are equal.
  • Complementary slackness. At optimality, for each constraint, either the primal constraint is binding or the corresponding dual variable is zero (or both). Equivalently, for each decision variable, either the variable is zero or its reduced cost is zero (or both).

What duality buys you

The dual provides the marginal value of each constraint — what a decision-maker would pay for one more unit of a scarce resource. It also provides a certificate of optimality: if you can exhibit a feasible primal solution and a feasible dual solution with equal objective values, both are optimal.

§ Self-check

Check your understanding

Question 1

The dual of a maximization LP with ≤ constraints is:

Show answer

A minimization LP with ≥ constraints.

Question 2

Strong duality states that:

Show answer

The primal and dual have the same optimal objective value.

Question 3

A shadow price is:

Show answer

The marginal value of relaxing a constraint by one unit.

Question 4

Complementary slackness says that at optimality:

Show answer

For each constraint, either it binds or its dual variable is zero.

Question 5

A sensitivity range is:

Show answer

The range over which a coefficient can change without changing the optimal basis.

👤