# Duality

Author: Claire Gauthier, Trent Melsheimer, Alexa Piper, Nicholas Chung, Michael Kulbacki (SysEn 6800 Fall 2020)

Steward: TA's name, Fengqi You

## Introduction

Every linear programming optimization problem may be viewed either from the primal or the dual, this is the principal of duality. Duality develops the relationships between one linear programming problem and another related linear programming problem. For example in economics, if the primal optimization problem deals with production and consumption levels, then the dual of that problem relates to the prices of goods and services. The dual variables in this example can be referred to as shadow prices.

The shadow price of a constraint ...

## Theory, methodology, and/or algorithmic discussions

### Definition:

Primal

Maximize $z=\textstyle \sum _{j=1}^{n}\displaystyle c_{j}x_{j}$ subject to:

$\textstyle \sum _{j=1}^{n}\displaystyle a_{i,j}x_{j}\lneq b_{j}\qquad (i=1,2,...,m)$ $x_{j}\gneq 0\qquad (j=1,2,...,n)$ Dual

Minimize $v=\textstyle \sum _{i=1}^{m}\displaystyle b_{i}y_{i}$ subject to:

$\textstyle \sum _{i=1}^{m}\displaystyle a_{i,j}y_{i}\lneq c_{j}\qquad (j=1,2,...,n)$ $y_{i}\gneq 0\qquad (i=1,2,...,m)$ ### Constructing a Dual:

${\begin{matrix}\max(c^{T}x)\\\ s.t.Ax\leq b\\x\geq 0\end{matrix}}$ $\quad \longrightarrow \quad$ ${\begin{matrix}\\\min(b^{T}y)\\\ s.t.A^{T}x\geq c\\y\geq 0\end{matrix}}$ ## Numerical Example

maximize $z=6x_{1}+14x_{2}+13x_{3}$ subject to:

${\tfrac {1}{2}}x_{1}+2x_{2}+x_{3}\leq 24$ $x_{1}$ 