NMO Lecture 7 PDF
NMO Lecture 7 PDF
¨ Examples
¨ Historical sketch
¨ Linear Programming (LP) definition
¨ Example
¨ Assumption of LP
¨ Geometry of Linear Programming
¨ Vertices of the feasible region
¨ Four types of Linear Programmes
2/34
7.1 Example
Rappresentazione grafica
max z = 3x1 + 5x2 8
s.t. 7
x2
x1 + x2 ≤ 12 6
x1 + 2x2 ≤ 16
5
x1 ≤ 10
x2 ≤ 6 4
3
x1, x2 ≥ 0
2
0
x1
-1
-1 0 1 2 3 4 5 6 7 8 9 10 11
3/34
Example: graphical solution
Rappresentazione grafica
max z = 3x1 + 5x2 8
s.t. 7
x2
x1 + x2 ≤ 12 6
x1 + 2x2 ≤ 16
5
x1 ≤ 10
x2 ≤ 6 4 (3,5) (8,4)
3 z=44
x1, x2 ≥ 0 3x1 + 5x2 =36
2
3x1 + 5x2 =15
1
0
x1
-1
-1 0 1 2 3 4 5 6 7 8 9 10 11
4/34
Example: vertices
Rappresentazione grafica
max z = 3x1 + 5x2 8
s.t. x2
x1 + x2 ≤ 12 7
x1 + 2x2 ≤ 16 (0,6) z=30 (4,6) z=42
x1 ≤ 10 6
x2 ≤ 6
5
x1, x2 ≥ 0
4 (8,4) z=44
2
(10,2) z=40
0 (10,0) z=30
(0,0) z=0 x1
-1
-1 0 1 2 3 4 5 6 7 8 9 10 11
5/34
Figura: Regione ammissibile
Example: vertices
Rappresentazione grafica
max z = 3x1 + 5x2 8
s.t. x2
x1 + x2 ≤ 12 7
x1 + 2x2 ≤ 16 (0,6) z=30 (4,6) z=42
x1 ≤ 10 6
x2 ≤ 6
5
x1, x2 ≥ 0
4 (8,4) z=44
2
(10,2) z=40
0 (10,0) z=30
(0,0) z=0 x1
-1
-1 0 1 2 3 4 5 6 7 8 9 10 11
6/34
Figura: Regione ammissibile
Example: vertices grafica
Rappresentazione
max z = 3x1 + 5x2 8
s.t. x2
x1 + x2 ≤ 12 7
x1 + 2x2 ≤ 16 (0,6) z=30 (4,6) z=42
x1 ≤ 10 6
x2 ≤ 6 (6,5) z=43
5
x1, x2 ≥ 0
4 (8,4) z=44
Examples
(6,5)= 0.5(4,6) + 0.5(8,4) 3
(6,0)= 0.6(10,0)+0.4(0,0)
What about the objective 2
(10,2) z=40
function value? v
1
(6,5)= 0.5(4,6) + 0.5(8,4)
(6,0) z=30
z for (6,5)=> 0 (10,0) z=30
=0.5(42)+0.5(44)=43
(0,0) z=0 x1
(6,0)= 0.6(10,0)+0.4(0,0) -1
-1 0 1 2 3 4 5 6 7 8 9 10 11
z for (6,0))=>
s=0.6(30)+0.4(0)=18 7/34
Figura: Regione ammissibile
Example: vertices grafica
Rappresentazione
max z = 3x1 + 5x2 8
s.t.
x1 + x2 ≤ 12 x2
x1 + 2x2 ≤ 16 7
x1 ≤ 10 (0,6) z=30 (4,6) z=42
x2 ≤ 6
6
x1, x2 ≥ 0
5
4 (8,4) z=44
(2,3)=7/9(0,3)+2/9(9,3) (2,3)
3
(0,3) (9,3)
(0,3)= 1/2(0,0)+ 1/2(0,6) 2 (10,2) z=40
(9,3)= 1/2(10,2)+1/2(8,4)
v
1
=>
(2,3)=7/18(0,0)+7/18(0,6)+ 0 (10,0) z=30
2/18(10,2)+2/18(8,4)
(0,0) z=0 x1
-1
Z for (2,3)=> -1 0 1 2 3 4 5 6 7 8 9 10 11
=7/18(0)+7/18(30)+2/18(40)+2/18(44)=21 8/34
Figura: Regione ammissibile
Example
Rappresentazione grafica
x1 + 2x2 ≤ 16 5
x1 ≤ 10 4 (8,4) z=44
x2 ≤ 6
3 (2,3)
(0,3) (9,3)
x1, x2 ≥ 0 2 (10,2)
1 vz=40
0
(10,0)
xz=30
-1 (0,0) z=0 1
-1 0 1 2 3 4 5 6 7 8 9 10 11
9/34
Example
10/34
7.2 Historical sketch
Definition
A Linear Programming (LP) problem is an optimization problem:
min f (x)
s.t.
x ∈ X ⊆ n
where
• the objective function f : X ® n is linear
• the feasible region X={ x ∈ n : gi(x) (=, ³ , £ )0, i ∈ {1,…, m} } and
• gi : n ® linear functions " i = 1,…, m
12/34
Linear programming
Definition
x* ∈ n is an optimal solution of the LP:
min f (x)
s.t.
x ∈ X ⊆ n
if f (x*) ≤ f (x) "x∈X
1/34
Linear programming
13/34
Assumptions of LP
14/34
7.3.1 The transportation problem (single product)
Given
m production plants i = 1,…, m
n clients j = 1,…, n
cij unit transportation cost from plant i to client j
pi maximum supply (production capacity) of plant i
dj demand of client j
qij maximum amount transportable from plant i to client
15/34
The transportation problem (single product)
m n
min åå cij xij m n
i =1 j =1
Assumption on input
parameters å p ³ åd
i =1
i
j =1
j
n
å xij £ pi " i = 1,…, m (plant capacity)
j =1
m
å xij ³ d j " j = 1,…, n (client demand)
i =1
(0,6)
(2,4)
-x1 -3x2 =-9
x1
(4,0)
(I)
(II) 17/34
7.4.1 Vertices of the feasible region
19/34
Polyhedron
Definitions:
Polyhedron P is the intersection of finitely many halfspaces
P can bebounded(polytope)
P can be unbounded
P can be empty
20/34
Convex set
x
. y2 ≠ convex
convex y1 y1 y2
21/34
Polyhedron
22/34
Vertices of the feasible region
x3
facet
H1
(0,0,3)
(1,0,3)
(0,1,3)
Algebraically:
not a vertex!
. (2,0,2)
~x is a vertex of P
.Polyedron P vertex x~
. H3 if ∄ y1, y2 ∈ P, y1≠y2
(0,0,0) .
(0,3,1)
(2,0,0) x1
and a ∈ (0, 1) s.t.
(0,3,0)
(2,2,0) ~x = a y1 + (1 - a) y2
(1,3,0)
edge
x2
H2
x4 .
P
. . x = a1 x1 +...+ a4 x4 (d = 0)
x1 . . x3
P
d
x0 .
26/34
Vertices of the feasible region
d . x
x1 . .. x2 27/34
The Fundamental theorem of Linear Programming
Proof
28/34
The Fundamental theorem of Linear Programming
i =1
è i =1 ø i =1 1£i £ k
³
since ai ³ 0 "i and a1+...+ak=1 0
29/34
Geometry of the fundamental theorem of Linear Programming
The theorem implies that, although the variables can take fractional
values, Linear Programs can be viewed as combinatorial problems:
31/34
Examining all vertices
50 10 2.8 hours
50 20 545.5 days
100 20 16995921.2 years
x2
A unique optimal solution c
.
x1
c
Multiple (infinitely many) optimal solutions
33/34
Four types of Linear Programmes
Infeasible LP