Optimization Lec04 LinearProgramming
Optimization Lec04 LinearProgramming
and Combinatorial
Optimization
DR. AHMED TAYEL
De p a rtment o f E n gi neering M at h em ati cs a n d P hysi cs, Fa c ul ty o f
E n gi neering , Al exandria Un i ve rsi ty
a h m e d .taye l @ a l ex u . e d u . e g
Linear Programming
1. Introduction.
2. Graphical method.
3. Simplex method.
1. Introduction
Why linear programming?
Max 𝑧 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
Definition:
Corner point solution:
Point resulting from the
intersection of two or more
constraint boundaries.
Theorem:
The optimal solution(s) lie
on one of the corner points
of the feasible region.
Solution to the linear
programming problem
This lecture
Next lecture
2. Graphical solution
𝑦
Example: Max 𝑧 =3𝑥+2𝑦
Subject to 2𝑥+3𝑦≤6
2𝑥+𝑦 ≤4
𝑥≤4
𝑥, 𝑦 ≥ 0
Point 𝒛
(0,0) 0 𝑥
(2,0) 6
(1.5,1) 6.5
(0,2) 4
𝑦
Example: Max 𝑧 =2𝑥+ 𝑦
Subject to 𝑥+𝑦≤3
2 𝑥 + 3 𝑦 ≥ 12
𝑥, 𝑦 ≥ 0
𝑥
𝑦
Example: Max 𝑧 =2𝑥+3𝑦
Subject to 2𝑥+3𝑦≤6
𝑥+2𝑦 ≤6
𝑥, 𝑦 ≥ 0
Point 𝒛
(0,0) 0 𝑥
(3,0) 6
(0,2) 6
Example: Max 𝑧 =3𝑥+2𝑦 𝑦
Subject to 𝑥 − 2 𝑦 ≤ 10
2 𝑥 − 𝑦 ≤ 10 Unbounded
𝑥, 𝑦 ≥ 0 feasible region
𝑥
𝑦
Example: Min 𝑧 =2𝑥+3𝑦
Subject to 2𝑥+𝑦 ≥7
𝑥+𝑦≥6 Unbounded
feasible region
𝑥+4𝑦 ≥8
𝑥, 𝑦 ≥ 0
Point 𝒛
(0,7) 21 𝑥
(1,5) 17
(16/3,2/3) 38/3 = 12.67
(8,0) 16