Professional Documents
Culture Documents
3 Linear Programming
3 Linear Programming
Plot the following inequalities on a graph and shade the region that
satisfies all 3…
y x=4
𝑥>4 𝑦≤8 2𝑥 + 𝑦 ≤ 18 18
16
14
Plot the equation of each one (ignoring the
inequality) 12
4
If x = 0, y = 18 If y = 0, x = 9
2
We need to be right of the red line, below the
blue line, and below/left of the green line! 0 x
0 2 4 6 8 10 12 14 16 18
2x + y = 18
Learning Objectives
• To find a number of possible solutions to a
problem given a number of constraints.
Linear Programming
• Linear programming is a mathematical method
of optimisation
𝑦≥6
Linear Programming
A company makes two different types of chair. Chair A Chair B
The machine time and craftsman’s time needed to Machine time
2 3
make each chair is shown in the table to the right. needed (hours)
Craftsman’s
time needed 4 2
In a week, the company has 30 hours of machine (hours)
time and 32 hours of craftsman’s time available.
𝑦≥6 2𝑥 + 3𝑦 ≤ 30
Linear Programming
A company makes two different types of chair. Chair A Chair B
The machine time and craftsman’s time needed to Machine time
2 3
make each chair is shown in the table to the right. needed (hours)
Craftsman’s
time needed 4 2
In a week, the company has 30 hours of machine (hours)
time and 32 hours of craftsman’s time available.
4𝑥 + 2𝑦 ≤ 32
𝑦≥6 2𝑥 + 𝑦 ≤ 16 Simplify
2𝑥 + 𝑦 ≤ 16
Linear Programming
x=2
y
Using these inequalities, we can draw graphs 18
to represent the situation…
16
𝑥≥2 2𝑥 + 3𝑦 ≤ 30 14
𝑦≥6 2𝑥 + 𝑦 ≤ 16 12
10
Ignore the inequality signs, and work out
8
coordinates where needed…
6 y=6
2𝑥 + 3𝑦 = 30
4
𝐼𝑓 𝑥 = 0, 𝑦 = 10 𝐼𝑓 𝑦 = 0, 𝑥 = 15 2
0 x
0 2 4 6 8 10 12 14 16 18
2𝑥 + 𝑦 = 16 2x + y = 16 2x + 3y = 30
𝐼𝑓 𝑥 = 0, 𝑦 = 16 𝐼𝑓 𝑦 = 0, 𝑥 = 8
Linear Programming
x=2
y
Using these inequalities, we can draw graphs 18
to represent the situation…
16
𝑥≥2 2𝑥 + 3𝑦 ≤ 30 14
𝑦≥6 2𝑥 + 𝑦 ≤ 16 12
10
Now consider the region on the graph which
8
satisfies all the inequalities. You are usually
asked on these questions to shade the 6 y=6
unwanted region… (for some reason…)
4
To the right of the red line
2
Above the blue line
Below/left of the green line 0 x
0 2 4 6 8 10 12 14 16 18
Below/left of the purple line
2x + y = 16 2x + 3y = 30
𝑦≥6 2𝑥 + 𝑦 ≤ 16 12
10
Remember that in this region we can have any
8
combination of chair A and B as long as they
are integer values… 6 y=6
𝐶ℎ𝑎𝑖𝑟 𝐴 (𝑥) 𝐶ℎ𝑎𝑖𝑟 𝐵 (𝑦)
4
2 6
2 7 2
2 8
0 x
3 6 0 2 4 6 8 10 12 14 16 18
3 7 2x + y = 16 2x + 3y = 30
3 8
4 6
The optimal value will always occur at
4 7
a corner of the wanted region!
5 6
Plenary
A company has a vehicle parking area of
1200m2 with space for x cars and y trucks.
Each car requires 20m2 of space, and a
truck requires 100m2 of space.
a) Show that: 𝑥 + 5𝑦 ≤ 60
________
________
Work to be completed
• Page 151 , Exercise 14.4