Lecture 11 BA
Lecture 11 BA
Lecture # 11
1
TOPICS to be COVERED
01 Problems Understanding
03 Sensitivity Analysis
2
Diet problem
I am always curious to consume right amount of foods for
meeting the daily requirement
3
Diet problem
Chocolate is so costly, , Milk too, I am trying to minimize the cost but
satisfy the daily requirement of several nutrients
4
Decision Variables
Daily
Requirem
ent
Carbs 20
Proteins 15
Vitamins 3
6
I have daily requirement of several
nutrients
Wheat Rice
Carbs/unit 5 7
Proteins/unit 4 2
Vitamins/unit 2 1
Cost/unit 100 200
7
constraints
5X + 7Y ≥ 20
4X + 2Y ≥ 15
2X + Y ≥ 3
X≥ 0
Y≥ 0
8
Objective
9
Exercise (10 mins)
10
Linear Programming
11
LP Properties and Assumptions
12
Formulating LP Problems
13
Exercise
• Consider the following typical applications of optimization and identify
objective functions and constraints
1. A manufacturer wants to develop a production schedule and an inventory policy
that will satisfy demand in future periods. Ideally, the schedule and policy will
enable the company to satisfy demand and at the same time minimize the total
production and inventory costs.
2. A financial analyst must select an investment portfolio from a variety of stock and
bond investment alternatives. The analyst would like to establish the portfolio that
maximizes the return on investment.
3. A marketing manager wants to determine how best to allocate a fixed advertising
budget among alternative advertising media such as web, radio, television,
newspaper, and magazine. The manager would like to determine the media mix
that maximizes advertising effectiveness.
4. A company has warehouses in a number of locations. Given specific customer
demands, the company would like to determine how much each warehouse should
ship to each customer so that total transportation costs are minimized.
14
A SIMPLE MAXIMIZATION
PROBLEM
15
ABC Furniture Company
• The ABC Furniture Company produces inexpensive tables and
chairs.
• Processes are similar in that both require a certain amount of
hours of carpentry work and in the painting and varnishing
department.
• Each table takes 4 hours of carpentry and 2 hours of painting and
varnishing.
• Each chair requires 3 of carpentry and 1 hour of painting and
varnishing.
• There are 240 hours of carpentry time available and 100 hours of
painting and varnishing.
• Each table yields a profit of $70 and each chair a profit of $50 .
16
ABC Furniture Company
• The company wants to determine the best combination of
tables and chairs to produce to reach the maximum profit
HOURS REQUIRED TO
PRODUCE 1 UNIT
(T) (C) AVAILABLE HOURS
DEPARTMENT TABLES CHAIRS THIS WEEK
Carpentry 4 3 240
17
ABC Furniture Company
The objective is to
Maximize profit
The constraints are
1.The hours of carpentry time used cannot exceed 240 hours per
week
2.The hours of painting and varnishing time used cannot exceed 100
hours per week
The decision variables representing the actual
decisions we will make are
T = number of tables to be produced per week
C = number of chairs to be produced per week
18
ABC Furniture Company
20
ABC Furniture Company
• Similarly
Painting and varnishing time used
≤ Painting and varnishing time
available
2 T + 1C ≤ 100 (hours of painting and varnishing time)
22
Graphical Representation of a Constraint
C
100 –
– This Axis Represents the Constraint T ≥ 0
80 –
Number of Chairs
–
60 –
–
40 – This Axis Represents the
– Constraint C ≥ 0
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
23
Graphical Representation of a Constraint
• 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
24
Graphical Representation of a Constraint
When ABC 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
25
Graphical Representation of a Constraint
C
Graph of carpentry constraint equation
100 –
–
80 – (T = 0, C = 80)
Number of Chairs
–
60 –
–
40 –
–
(T = 60, C = 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
26
Graphical Representation of a Constraint
Any point on or below the constraint plot
C will not violate the restriction
Any point above the plot will violate the
100 – restriction
–
80 –
Number of Chairs
–
60 –
–
(30, 40) (70, 40)
40 –
–
20 –
– (30, 20)
–| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
27
Graphical Representation of a Constraint
• 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
28
Graphical Representation of a Constraint
C
100 – (T = 0, C = 100)
–
80 – Graph of painting and varnishing
Number of Chairs
– constraint equation
60 –
–
40 –
–
(T = 50, C = 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
29
Graphical Representation of a Constraint
30
Graphical Representation of a Constraint
• For the point (30, 20)
Carpentry 4T + 3C ≤ 240 hours available
constraint (4)(30) + (3)(20) = 180 hours used
Painting 2T + 1C ≤ 100 hours available
constraint (2)(30) + (1)(20) = 80 hours used
31
Isoprofit Line Solution Method
• Once the feasible region has been graphed, we need to
find the optimal solution from the many possible solutions
• The speediest way to do this is to use the isoprofit line
method
• Starting with a small but possible profit value, we graph the
objective function
• We move the objective function line in the direction of
increasing profit while maintaining the slope
• The last point it touches in the feasible region is the
optimal solution
32
Isoprofit Line Solution Method
C Isoprofit line at $2,100
100 –
–
80 –
Number of Chairs
–
60 –
–
(0, 42) $2,100 = $70T + $50C
40 –
–
(30, 0)
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Figure 7.6 Number of Tables
33
Isoprofit Line Solution Method
• For ABC Furniture, choose a profit of $2,100
• The objective function is then
$2,100 = 70T + 50C
• Solving for the axis intercepts, we can draw the graph
• This is obviously not the best possible solution
• Further graphs can be created using larger profits
• The further we move from the origin, the larger the profit
will be
• The highest profit ($4,100) will be generated when the
isoprofit line passes through the point (30, 40)
34
Isoprofit Line Solution Method
C Four isoprofit lines
100 –
–
$3,500 = $70T + $50C
80 –
Number of Chairs
35
Isoprofit Line Solution Method
C Optimal solution to the
100 – Flair Furniture problem
–
80 –
Maximum Profit Line
Number of Chairs
–
60 – Optimal Solution Point
– (T = 30, C = 40)
40 –
– $4,100 = $70T + $50C
20 –
–
|– | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
36
Corner Point Solution Method
• A second approach to solving LP problems employs
the corner point method
• It involves looking at the profit at every corner
point of the feasible region
• The mathematical theory behind LP is that the
optimal solution must lie at one of the corner
points, or extreme point, in the feasible region
• For ABC Furniture, the feasible region is a four-
sided polygon with four corner points labeled 1, 2,
3, and 4 on the graph
37
Corner Point Solution Method
C Four corner points of the
100 – feasible region
2 –
80 –
Number of Chairs
–
60 –
–
3
40 –
–
20 –
–
1 |– | | | | | | | | | | |
0 20 40
4 60 80 100 T
Number of Tables
38
Corner Point Solution Method
Point 1 : (T = 0, C = 0) Profit = $70(0) + $50(0) = $0
Point 2 : (T = 0, C = 80) Profit = $70(0) + $50(80) = $4,000
Point 4 : (T = 50, C = 0) Profit = $70(50) + $50(0) = $3,500
Point 3 : (T = 30, C = 40) Profit = $70(30) + $50(40) = $4,100
39
Corner Point Solution Method
Using the simultaneous equations method, 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
Substituting 40 for C in either of the original equations
allows us to determine the value of T
4T + (3)(40) = 240 (carpentry line)
4T + 120 = 240
T = 30
40
Summary of Graphical Solution Methods
ISOPROFIT METHOD
1. Graph all constraints and find the feasible region.
2. Select a specific profit (or cost) line and graph it to find the slope.
3. Move the objective function line in the direction of increasing profit (or
decreasing cost) while maintaining the slope. The last point it touches in the
feasible region is the optimal solution.
4. Find the values of the decision variables at this last point and compute the
profit (or cost).
CORNER POINT METHOD
1. Graph all constraints and find the feasible region.
2. Find the corner points of the feasible reason.
3. Compute the profit (or cost) at each of the feasible corner points.
4. select the corner point with the best value of the objective function found in
Step 3. This is the optimal solution.
41
THANK YOU
42