Linear Programming ppt
Linear Programming ppt
subject to
4T + 3C ≤ 240 (carpentry
constraint)
2T + 1C ≤ 100 (painting
and varnishing constraint)
The easiest way to solve a small LP problems is with
100 –
– This Axis Represents the Constraint T ≥ 0
80 –
Number of Chairs
–
60 –
–
40 – This Axis Represents the
– Constraint C ≥ 0
20 –
–
|–
T
|
Figure 7.1 Number of Tables
|
The first step in solving the problem is to identify a set
or
region of feasible solutions
To do this we plot each constraint equation on a graph
We start by graphing the equality portion of the
constraint
equations
4T + 3C = 240
We solve for the axis intercepts and draw the line
When Flair produces no tables, the carpentry constraint
is 4(0) + 3C = 240
3C = 240
C = 80
Similarly for no chairs
4T + 3(0) = 240
4T = 240
T = 60
This line is shown on the following graph
C
•
Graph 100 –
of carpentry
equation
constraint
•–
•
(T = 0, C = 80) 80 –
Number of Chairs •–
• 60 –
•–
• 40 –(T = 60, C = 0)
•–
• 20 – T
Figure 7.2
•– Number of Tables
• | | | | | | | | | | | |
–
•0 20 40 60 80 100
The point (30, 40) lies on the plot and exactly satisfies
the constraint
4(30) + 3(40) = 240
The point (30, 20) lies below the plot and satisfies
the constraint
4(30) + 3(20) = 180
The point (30, 40) lies above the plot and does not
satisfy the constraint
4(70) + 3(40) = 400
(T = 0, C = 100)
• 100 –
•–
Number of Chairs
Graph of painting and varnishing
80 – equation
• constraint
•–
• 60 –
•– (T = 50, C = 0)
• 40 –
•– T
Figure 7.4 • 20 –
Number of Tables
•–
• | | | | | | | | | | | |
–
To produce tables and chairs, both departments
must be used
We need to find a solution that satisfies
both constraints
A new graph shows both constraint plots
The (or ) is
where all constraints are satisfied
Any point inside this region is a solution
Any point outside the region is an
solution
C Feasible solution region for Flair
Furniture
• 100 –
•–
Number of Chairs
Painting/Varnishing Constraint
• 80 –
•–
• 60 –
–
•Feasible Carpentry Constraint
Region • 40 –
•– T
Figure 7.5 • 20 –
Number of Tables
•–
• | | | | | | | | | | | |
–
For the point (30,
20)
Carpentry 4T + 3C ≤ 240 hours available
(4)(30) + (3)(20) = 180 hours used
constraint
Painting 2T + 1C ≤ 100 hours available
constraint (2)(30) + (1)(20) = 80 hours
used
For the point (70, 40)
Carpentry 4T + 3C ≤ 240 hours available
constraint (4)(70) + (3)(40) = 400 hours used
Painting 2T + 1C ≤ 100 hours available
constraint (2)(70) + (1)(40) = 180 hours used
For the point
(50, 5)
Carpentry 4T + 3C ≤ 240 hours available
(4)(50) + (3)(5) = 215 hours used
constraint
Painting 2T + 1C ≤ 100 hours available
constraint (2)(50) + (1)(5) = 105 hours
used
A second approach to solving LP problems employs
the
Number of Chairs
–
60 –
–
3
40 –
–
20 –
–
|– | | | | | | | | | |
1
| T
0 20 40 60 80 100
4
Figure 7.9 Number of Tables
Point Profit = $70(0) + $50(0) = $0
1 : (T = 0, C = 0)
Profit = $70(0) + $50(80) =
2 : (T = 0, C = 80)
Point $4,000 Profit = $70(50) + $50(0)
Point 4 : (T = 50, C = 0) = $3,500
Point Profit = $70(30) + $50(40) =
3 : (T = 30, C = 40)
Because Point $4,100 the highest profit,
3 returns
is the optimal solution
this
To find the coordinates for Point 3 accurately
have
we to solve for the intersection of the two
constraint lines
The details of this are on the following slide
Using the , we multiply
the
painting equation by –2 and add it to the carpentry
equation
4T + 3C = 240 (carpentry line)
– 4T – 2C = –200 (painting line)
C= 40
8–
–
6–
–
Region Satisfying
4– Third Constraint
–
2–
–
0– | | | | | | | | |
|
2 4 6 8 X1
X1 ≥ 5
15 –
X2 ≤ 10
10 –
Feasible Region
5–
X1 + 2X2 ≥ 15
0 | | |
|
|– 5 10 15 X1
Redundancy
◦ A redundant constraint is one that does not affect
the
feasible solution region
◦ This is a very common occurrence in the real world
◦ It causes no particular problems, but eliminating
redundant constraints simplifies the model
X2
30 –
A problem with a
redundant 25 –
constraint 2X1 + X2 ≤ 30
20 –
Redundant
Constraint
15 –
X1 ≤ 25
10 –
X1 + X2 ≤ 20
5– Feasible
Region
0– | | | | |
|
5 10 15 20 25 30 X1
Alternate Optimal Solutions
◦ Occasionally two or more optimal solutions may exist
◦ Graphically this occurs when the objective function’s
isoprofit or isocost line runs perfectly parallel to one of
the constraints
◦ This actually allows management great flexibility in deciding
which combination to select as the profit is the same at
each alternate solution
Example of X2
alternate
8–
optimal
solutions 7–