MG5580 - Business Modelling and Simulation in Supply Chains
MG5580 - Business Modelling and Simulation in Supply Chains
“MG5580 – Business
Modelling and Simulation
in Supply Chains”
LECTURE: Linear
Programming
Dr Behzad Hezarkhani
Agenda
❖Introductory Example
❖What is Linear Programming (LP)?
❖What Constitutes a Linear Program?
❖Standard forms of LP
❖Exercise
❖Graphical Solution to 2-Dimensional Problem
❖Possible Cases with Optimal Solutions
❖Solving Linear Programmes in General
❖Important Topics in Linear Programming
❖Working with Excel Solver
1
01/02/2023
Introductory Example
Profit = 5 𝑥1 + 10 𝑥2
2
01/02/2023
Introductory Example
Introductory Example
3
01/02/2023
“Linear” Programming
𝑓(𝑥1 , 𝑥2 , … , 𝑥𝑛 ) = 𝑐1 𝑥1 +𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
Examples:
Function Linear?
𝑥1 + 𝑥22 NO!
𝑥1 NO!
𝑥2
𝑥1 + 𝑥2 + |𝑥3 | NO!
2 Yes
−2𝑥1 + 𝑥2 − 7𝑥3
3
4
01/02/2023
max 𝑧 = 𝑐1 𝑥1 +𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
Subject To (s.t.)
min 𝑧 = 𝑐1 𝑥1 +𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
Subject To (s.t.)
5
01/02/2023
Two Crude Petroleum runs a small refinery on the Texas coast. The refinery distils crude
petroleum from two sources, Saudi Arabia and Venezuela, into the three main products:
gasoline, jet fuel and lubricants.
The two crudes differ in chemical composition and yield different product mixes. Each
barrel of Saudi crude yields 0.3 barrel of gasoline, 0.4 barrel of jet fuel, and 0.2 barrel of
lubricants. Each barrel of Venezuelan crude yields 0.4 barrel of gasoline, 0.2 barrel of jet
fuel and 0.3 barrel of lubricants. The remaining 10% is lost to refining.
The crudes differ in cost and availability. Two Crude can purchase up to 9000 barrels per
day from Saudi Arabia at $20 per barrel. Up to 6000 barrels per day of Venezuelan
petroleum are available at the lower cost of $15 per barrel.
Two Crude’s contracts with independent distributors require it to produce 2000 barrels per
day of gasoline,1500 barrels per day of jet fuel and 500 barrels per day of lubricants. How
can these requirements be fulfilled most efficiently?
6
01/02/2023
• Each line divides the spaces into two half-spaces. An inequality determines a half-
space 𝑥2
5 𝑥1 + 10 𝑥2= 400
5 𝑥1 + 10 𝑥2= 350
5 𝑥1 + 10 𝑥2= 300
5 𝑥1 + 10 𝑥2= 250
5 𝑥1 + 10 𝑥2= 200
5 𝑥1 + 10 𝑥2= 150
5 𝑥1 + 10 𝑥2= 100 𝑥2 ≥ 15
3 𝑥1 + 8 𝑥2 ≤ 240
𝑥1
7
01/02/2023
There are also many software tool for solving linear programs:
• Excel Solver (you need to learn this!)
• Lindo/Lingo
• IBM ILOG CPLEX
• …
8
01/02/2023
9
01/02/2023
𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 = 950
𝑥4 ≥ 400
2𝑥1 + 3𝑥2 + 4𝑥3 + 7𝑥4 ≤ 4600
3𝑥1 + 4𝑥2 + 5𝑥3 + 6𝑥4 ≤ 5000
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
Thank you!
10