Slides Linear Programming Introduction
Slides Linear Programming Introduction
Frédéric Giroire
x1 , x2 : Decision variables
x1 , x2 : Decision variables
Maximize ∑nj=1 cj xj
Subject to: ∑nj=1 aij xj ≤ bi for all 1 ≤ i ≤ m (1)
xj ≥ 0 for all 1 ≤ j ≤ n.
z = 50x1 + 200x2 .
x1 + 4x2 ≤ 21.
x1 ≥ 0, x2 ≥ 0.
• m = 3 machines
• n = 8 tasks
• Each task lasts x units of
time
• m = 3 machines
• n = 8 tasks
• Each task lasts x units of
time
• m = 3 machines
• n = 8 tasks
• Each task lasts x units of
time
Solution: LP model.
min t
subject to
j
∑1≤i ≤n ti xi ≤ t (∀j , 1 ≤ j ≤ m)
j
∑1≤j ≤m xi = 1 (∀i , 1 ≤ i ≤ n)
j
with xi = 1 if task i is affected to machine j.
Example:
x1 + x2 = 200 (2)
We get:
x1 = 122
x2 = 78
Objective = 66100.
• Algebraical methods:
• Simplex method (George B. Dantzig 1949): skim through the
feasible solution polytope.
Similar to a "Gaussian elimination".
Very good in practice, but can take an exponential time.