Linear Programs in Standard Form
Linear Programs in Standard Form
Napat Rujeerapaiboon
Semester I, AY2019/2020
LPs in Standard Form
INPUT: OUTPUT:
LP in Optimal Value &
Standard Form Optimal Solution
x1 ≥ 0, x2 ≥ 0, . . . , xn ≥ 0
The input parameters bi , cj , and aij are fixed real constants that
encode the LP problem. We require bi ≥ 0 ∀i = 1, . . . , m. (The
decision variables xi , i = 1, . . . , n, are yet to be found.)
Compact Notation
minimize c T x
subject to Ax = b
x ≥ 0,
where b ≥ 0.
max f (x) − min −f (x)
=
s.t. x ∈ X s.t. x ∈X
Inverting the objective preserves the optimal solution x ∗
-f(x)
min -f(x)
x* x*
X X
max f(x) - min -f(x)
f(x)
≤ Inequalities → Equalities
minimize c1 x1 + c2 x2 + . . . + cn xn
subject to:
and
x1 ≥ 0, x2 ≥ 0, . . . , xn ≥ 0
≤ Inequalities → Equalities
minimize c1 x1 + c2 x2 + . . . + cn xn
subject to:
and
x1 ≥ 0, x2 ≥ 0, . . . , xn ≥ 0, y1 ≥ 0, y2 ≥ 0, . . . , ym ≥ 0
Slack Variables
min c T x min c T x
s.t. Ax ≤ b = s.t. Ax + y = b
x ≥0 x ≥ 0, y ≥ 0,
where y = (y1 , . . . , ym )T .
≥ Inequalities → Equalities
minimize c1 x1 + c2 x2 + . . . + cn xn
subject to:
and
x1 ≥ 0, x2 ≥ 0, . . . , xn ≥ 0
≥ Inequalities → Equalities
minimize c1 x1 + c2 x2 + . . . + cn xn
subject to:
and
x1 ≥ 0, x2 ≥ 0, . . . , xn ≥ 0, y1 ≥ 0, y2 ≥ 0, . . . , ym ≥ 0
Surplus Variables
min c T x min c T x
s.t. Ax ≥ b = s.t. Ax − y = b
x ≥0 x ≥ 0, y ≥ 0,
where y = (y1 , . . . , ym )T .
Negative Right Hand Sides
• Free variables:
• Suppose there is no constraint xj ≥ 0,i.e., xj can be positive
or negative.
• Substitute xj = xj+ − xj− with xj+ , xj− ≥ 0.
• The LP has now (n + 1) variables:
• Free variables:
• Suppose there is no constraint xj ≥ 0,i.e., xj can be positive
or negative.
• Any equality constraint involving xj can be used to eliminate
xj .
• Example: x1 is free
min x1 + 3x2 + 4x3
min x2 + 3x3 + 5
s.t. x1 + 2x2 + x3 = 5 (∗)
= s.t. x2 + x3 = 4
2x1 + 3x2 + x3 = 6
x2 , x3 ≥ 0
x2 , x3 ≥ 0