![Page 1: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/1.jpg)
A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin supplement and concentrated flavouring, as shown in the table.
The last row in the table shows how much of each ingredient is available for the day’s production.
How can the factory manager decide how much of each drink to make?
THE PROBLEM
Linear Programming : Introductory Example
![Page 2: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/2.jpg)
SyrupVitamin
supplement
Concentrated
flavouring
5 litres of energy drink
1.25 litres 2 units 30 cc
5 litres of refresher
drink1.25 litres 1 unit 20 cc
Availabilities 250 litres 300 units 4.8 litres
Energy drink sells at £1 per litre
Refresher drink sells at 80 p per litre
THE PROBLEM
![Page 3: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/3.jpg)
Syrup constraint:
Let x represent number of litres of energy drink
Let y represent number of litres of refresher drink
0.25x + 0.25y 250
x + y 1000
FORMULATION
![Page 4: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/4.jpg)
Vitamin supplement constraint:
Let x represent number of litres of energy drink
Let y represent number of litres of refresher drink
0.4x + 0.2y 300
2x + y 1500
FORMULATION
![Page 5: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/5.jpg)
Concentrated flavouring constraint:
Let x represent number of litres of energy drink
Let y represent number of litres of refresher drink
6x + 4y 4800
3x + 2y 2400
FORMULATION
![Page 6: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/6.jpg)
Objective function:
Let x represent number of litres of energy drink
• Energy drink sells for £1 per litre
Let y represent number of litres of refresher drink
• Refresher drink sells for 80 pence per litre
Maximise x + 0.8y
FORMULATION
![Page 7: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/7.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
Empty grid to accommodate the 3 inequalities
SOLUTION
![Page 8: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/8.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
1st constraint
Draw boundary line:
x + y = 1000x y
0100
0
1000
0
SOLUTION
![Page 9: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/9.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
1st constraint
Shade out unwanted region:
x + y 1000
SOLUTION
![Page 10: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/10.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
Empty grid to accommodate the 3 inequalities
SOLUTION
![Page 11: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/11.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
2nd constraint
Draw boundary line:
2x + y = 1500x y
0150
0
750 0
SOLUTION
![Page 12: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/12.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
2nd constraint
Shade out unwanted region:
2x + y 1500
SOLUTION
![Page 13: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/13.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
Empty grid to accommodate the 3 inequalities
SOLUTION
![Page 14: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/14.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
3rd constraint
Draw boundary line:
3x + 2y = 2400
x y
0120
0
800 0
SOLUTION
![Page 15: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/15.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
3rd constraint
Shade out unwanted region:
3x + 2y 2400
SOLUTION
![Page 16: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/16.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
All three constraints:
First:
x + y 1000
SOLUTION
![Page 17: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/17.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
All three constraints:
First:
x + y 1000
Second:
2x + y 1500
SOLUTION
![Page 18: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/18.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
All three constraints:
First:
x + y 1000
Second:
2x + y 1500
Third:
3x + 2y 2400
SOLUTION
![Page 19: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/19.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
All three constraints:
First:
x + y 1000
Second:
2x + y 1500
Third:
3x + 2y 2400
Adding:
x 0 and y 0
SOLUTION
![Page 20: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/20.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
Feasible region is the unshaded area and satisfies:
x + y 1000
2x + y 1500
3x + 2y 2400
x 0 and y 0
SOLUTION
![Page 21: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/21.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
Evaluate the objective function
x + 0.8yat vertices of the feasible region:
O: 0 + 0 = 0
A: 0 + 0.8x1000 = 800
B: 400 + 0.8x600 = 880
C: 600 + 0.8x300= 840
D: 750 + 0 = 750
O
A
B
C
D
Maximum income = £880 at (400, 600)
SOLUTION
![Page 22: A factory produces two types of drink, an ‘energy’ drink and a ‘refresher’ drink. The day’s output is to be planned. Each drink requires syrup, vitamin](https://reader030.vdocuments.site/reader030/viewer/2022032710/56649f535503460f94c780b2/html5/thumbnails/22.jpg)
- 200 200 400 600 800 1000 1200
- 200
200
400
600
800
1000
1200
1400
1600
x
y
Alternatively, draw a straight line x + 0.8y = k.
O
A
B
C
D
Maximum income = £880 at (400, 600)
SOLUTION
Move a ruler parallel to this line until it reaches the edge of the feasible region.The furthest point you can move it to is point B.At B (400, 600) the value of the objective function is 880.