Lecture 4 Linear Programming II - Solving Problems Six Slides
Lecture 4 Linear Programming II - Solving Problems Six Slides
LINEAR PROGRAMMING II
SOLVING LINEAR PROBLEMS
Lecture 4
Graphical Method
STEPS TO GRAPHICAL
PROCEDURE
Department
Carpentry (hrs)
Painting
&Varnishing (hrs)
Profit Amount
X1
Tables
4
X2
Chairs
3
Available
Hours This
Week
240
100
Number of Chairs X2
100
80
60
40
20
0
20
40
60
80
100
Number of Tables X1
Plotting Constraints
Plotting Constraints
The
constraint on hours of carpentry: 4X1 +3X2
240: must be converted to an equation of a
straight line.
This is done by changing sign to = sign so you
will have a linear equation: 4X1 +3X2 = 240 .
You will then have to have to find any two points
that satisfy this equation, then draw a line through
these two points on the graph.
The two easiest points are those at which the line
intersects the X1 and X2 axes.
So when X1 = 0, find the value of X2. Then when
X2 = 0, find the value of X1. Use the equation to
obtain these values.
Plotting Constraints
Number of Chairs X2
1st
100
80
(X1= 0, X2 =80)
60
40
20
(X1 = 60, X2 = 0)
0
20
40
60
80
100
Number of Tables X1
Next,
2nd
constraint
on
hours
of
painting/varnishing: 2X1 + 1X2 100: must be
converted to an equation of a straight line.
This is done by changing sign to = sign so you
will have a linear equation: 2X1 +1X2 = 100.
You will then have to have to find any two points
that satisfy this equation, then draw a line through
these two points on the graph.
The two easiest points are those at which the line
intersects the X1 and X2 axes.
So when X1 = O, find the value of X2. Then when
X2 = 0, find the value of X1. Use the equation to
obtain these values.
Number of Chairs X2
Plotting Constraints
80
60
40
20
(X1 = 50, X2 = 0)
0
20
40 50
60
80
100
Number of Tables X1
(X1 = 0, X2 =100)
100
(X1 = 0, X2 =100)
100
80
Infeasible area
60
40
20
(X1 = 50, X2 = 0)
0
20
Feasible area
shown
40 50
60
80
100
Number of Tables X1
Number of Chairs X2
100
80
Infeasible area
60
40
20
0
4
20
Feasible area
shown
40 50
60
80
100
Number of Tables X1
(A)
(B)
X1
(C)
3 oz.
MINIMIZATION PROBLEM
ANDI
Minimize:
Subject to:
where,
X1,
X2 0
(D)
X 1 = # of pounds of brand 1 feed to purchase
X 2 = # of pounds of brand 2 feed to purchase
(A) = ingredient A constraint
(B) = ingredient B constraint
(C) = ingredient C constraint
(D) = non-negativity constraints
Corner Points
Corner Points
This shaded
side is the
feasible
space
The
unshaded
area below
lines is
infeasible
There are three corner points and one must work out
the optimal values (cost) for x1, x2 at these points.
Then we plug in the values in objective function: Min
C. = 2X1 + 3X2 (in cents)
A: X1 = 3; X2 = 12: Total Cost: 2(3) + 3(12) = 42
cents
B: X1 =8.4, X2 =4.8: Total Cost: 2(8.4) + 3(4.8) =
31.2 cents
C: X1 = 18, X2 = 0: Total Cost: 2(18) + 3(0) = 36
cents.
Given that the lowest cost is needed, the manager
should purchase 8.4 lbs of Brand 1, and 4.8 pounds
of Brand 2 (with only a cost of 31 cents).
Sensitivity Analysis
Sensitivity analysis is important to assess whether an
optimal solution is likely to change (or remain
constant) if changes occur to other factors such as
prices of raw materials, product demand changes,
production capacity changes, and so on.
Managers must be able to act quickly to determine
whether the decisions they had made would have to
change.
Sensitivity analysis determines the range of value
changes that will not affect the optimal solution.
We will focus on changes to objective function
coefficients (profit/cost values) and to right-hand side
values (quantity constraint values).
Prior Example
Maximize Profit: 70X1 + 50X2
Subject to Constraints:
4X1 + 3X2 240 (Carpentry)
2X1 + 1X2 100 (Paint & Varnishing)
X1, X2
0 ( nonnegative constraints)
We will look at this example into QM for
windows to examine the sensitivity results.
Carpentry
40
$50
Lower
Bound
Upper
Bound
$66.66
$100
$35
$52.50
SoI
Constraint
Dual
Price
Slack/
Surplus
Original
Value
Lower
Bound
Upper
Bound
$15
240 hrs
200
300
Painting/Var
$5
0
100 hrs
80
120
.
Dual prices are calculated from the sensitivity analysis for each
constraint. Slack is what remains after you operated on optimal
solution (make 30 tables and 40 chairs). Original value
represents current limits of constraints, and lower and upper
bound represents range of feasibility for quantity constraints. For
example, $15 will be added on total profit for every unit (hour)
added to carpentry from 240 up to 300 hours. Outside of the
range of 200 to 300 hours, dual price will not be relevant.
Carpentry
Dual
Price
Slack/
Surplus
Original
Value
Lower
Bound
Upper
Bound
$15
240
200
300
Painting/Var
$5
0
100
80
120
.
Dual prices are calculated from the sensitivity analysis for each
constraint. Slack is what remains after you operated on optimal
solution (make 30 tables and 40 chairs). Original value
represents current limits of constraints, and lower and upper
bound represents range of feasibility for quantity constraints. For
example, $15 will be added on total profit for every unit (hour)
added to carpentry from 240 up to 300 hours. Outside of the limit
of 200 to 300 hours, dual price will not be relevant.
Practice Example
Using the same example, remember the profit
of $4100.
1. If the manager had obtained an additional 25
hours to the total carpentry hours, what will be
the total profit (i.e. value of objective function)?
2. If the manager had lost 12 hours of total
carpentry hours, what will be the total profit?
3. If the painting/varnishing hours had increased
from 100 to 110 hrs, what will be the total
profit?
Carpentry
Dual
Price
Slack/
Surplus
Original
Value
Lower
Bound
Upper
Bound
$15
240
200
300
Painting/Var
$5
0
100
80
120
.
Dual prices are calculated from the sensitivity analysis for each
constraint. Slack is what remains after you operated on optimal
solution (make 30 tables and 40 chairs). Original value
represents current limits of constraints, and lower and upper
bound represents range of feasibility for quantity constraints. For
example, $15 will be added on total profit for every unit (hour)
added to carpentry from 240 up to 300 hours. Outside of the limit
of 200 to 300 hours, dual price will not be relevant.
Practice Solution 1
END OF LECTURE