Duality in linear programming

Theorem (linear programs satisfy strong duality) open_in_new

A linear program that is bounded and feasible satisfies strong duality.

Proof: linear functions are convex, and convex optimisation problems satsify strong duality.

Theorem (dual problem of a linear program) open_in_new

Let $A$ be a matrix. See here for notation.

For the primal problem

Problem

$$ \begin{align*} \text{Minimise } & \v c^T \v x \\ \text{subject to } & \v a_i^T \v x \geq b_i, &&i\in M_1, \\ & \v a_i^T \v x \leq b_i, && i\in M_2, \\ & \v a_i^T \v x = b_i, && i\in M_3, \\ & x_j \geq 0, && j\in N_1, \\ & x_j \leq 0, && j\in N_2, \\ & x_j \text{ free}, && j\in N_3, \end{align*} $$

the dual problem is

Problem

$$ \begin{align*} \text{Maximise } & \v b^T \v \lambda \\ \text{subject to } & \lambda_i \geq 0, &&i\in M_1, \\ & \lambda_i \leq 0, && i\in M_2, \\ & \lambda_i \text{ free}, && i\in M_3, \\ &\v A_j^T \v \lambda \leq c_j, &&j\in N_1, \\ &\v A_j^T \v \lambda \geq c_j, &&j\in N_2, \\ &\v A_j^T \v \lambda = c_j, &&j\in N_3. \end{align*} $$

Proof

Theorem (optimality iff complementary slackness for a linear program) open_in_new

For a linear program defined here, let $\v x$ be primal feasible and $\v \lambda$ be dual feasible (i.e. feasible solutions of the primal and feasible problems).

$\v x$ and $\v \lambda$ are optimal for the two respective problems iff complementary slackness holds, i.e. $$ \begin{align*} \lambda_i(\v a_i^T \v x - b_i) &= 0 &&\forall i\in M_1\cup M_2\cup M_3, \\ (c_j - \v A_j^T \v \lambda) x_j &= 0 &&\forall j\in N_1\cup N_2\cup N_3. \end{align*} $$

Proof

Definition (reduced cost) open_in_new

Consider a linear program in standard form. Let $\v x$ be a basic solution. See here for notation.

the corresponding vector of reduced costs $\bar{\v c}$ is defined as $$ \begin{align*} \bar{\v c}^T = \v c^T - \v c_B^T B\inv A \end{align*} $$ where $\v c_B^T = (c_{B(1)}, c_{B(2)}, \ldots, c_{B(m)})$.

Theorem (optimality and reduced cost) open_in_new

In a standard form linear program, a basic feasible solution $\v x$ is optimal iff the corresponding reduced costs $\bar{\v c} \geq \v 0$.

Proof