Lecture 14 Linear Programming
Lecture 14 Linear Programming
DATA ANALYTICS
AND STATISTICS
LECTURE 14
LINEAR PROGRAMMING
OVERVIEW
5x ≤ 40.
Example 1 Continued
The solution of the problem represented by this
model is still quite simple.
The reason for representing the problem in this way
is that more complicated problems can be
represented using mathematical models in this way.
Doing this allows us to solve them using computer
software, The Management Scientist.
This problem that has three components:
Decision variable: x
Objective function: 10x
Constraints: 5x ≤ 40
components.
Example 2
• Suppose the same toy company also makes soft rabbits
that earn them a unit profit of £5 each and that each rabbit
requires 2 hours of production time.
• Assume there are 40 hours of production time to be
shared between the production of bears and rabbits.
• How many bears and how many rabbits should they make
to maximise profit?
• This is still a simple problem, but the solution may not be
immediately obvious to all straight away.
• We can develop a mathematical model as follows:
Decision variable: x and y
Constraints: 5x + 2y ≤ 40
Example 1 Continued
Having formulated the problem like this, we can solve
it using software such as Excel and The Management
Scientist.
Profits are £10 per Standard bag and £9 per Deluxe bag.
Cutting Inspection
Product & &
Dyeing Sewing Finishing Packaging
Standard
Bag 7/10 1/2 1 1/10
Deluxe
Bag 1 5/6 2/3 1/4
Hours
Available 630 600 708 135
16
THE OBJECTIVE FUNCTION AND DECISION VARIABLES
22
PROBLEM FORMULATED AS AN LP PROBLEM TO BE
SOLVED IN THE MANAGEMENT SCIENTIST:
4 17.9988 0.0000
SOLUTION CONTINUED
OBJECTIVE COEFFICIENT RANGES
27
S = 0, D = 630
1200
D = 0, S = 6300/7 = 900
(S=0, D=630) (0, 630) (900, 0)
No. of Deluxe Bags
1000
800
600
(S=900, D=0)
400
200
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
28
1200
7
S + D = 630
No. of Deluxe Bags
1000 10
800
All points in shaded
600
area satisfy constraint
400 7
S + D ≤ 630
200 10
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
29
1200 S = 0, D = 3600/5 = 720
1 5
S + D = 600 D = 0, S = 1200
No. of Deluxe Bags
1000
800
600
All points in shaded
400 area satisfy constraint
2
200 S + D ≤ 708
3
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
31
1200 S = 0, D = 540
1 1 D = 0, S = 1350
S + D = 135
No. of Deluxe Bags
1000
LP problem. The shaded area is
800
called the feasible region to the
600 problem.
400
200
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
33
HOW DO WE FIND THE OPTIMAL SOLUTION
ON THE GRAPH?
We require the optimal point to:
34
EXAMPLE
Consider a profit of $1800
1000
points:
800
600
(S=0, D=200)
400
200 (S=180, D=0)
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
36
BUT THERE ARE MANY OTHER PARALLEL
ISO-PROFIT LINES
S = 0, D = 400
D = 0, S = 360
1200 (0, 400) (360, 0)
S = 0, D = 800
Profit of £1800
No. of Deluxe Bags
1000 D = 0, S = 720
(0, 800) (720, 0)
800
Profit of £3600
600 Profit of £7200
400
200
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
37
SO WHICH PROFIT LINE?
We are interested in the iso-profit line which MAXIMISES the
profit!
1200
Optimal Point where Cut &
No. of Deluxe Bags
1000
Dye and Finishing constraint
800 lines intersect
600
400
200
0
0 200 400 600 800 1000 1200 1400
No. of Standard Bags
39
DETERMINING CO-ORDINATES OF OPTIMAL POINT
If
maximising move the iso-profit line ‘out’
away from origin and parallel