Chapter 8 LINEAR OPTIMIZATION MODELS R1
Chapter 8 LINEAR OPTIMIZATION MODELS R1
CBA OM-BA
Business Analytics
Chapter 8
3
Optimization Problems
• Optimization problems:
4
Applications of Optimization Problems
• Typical applications
• A manufacturer wants to develop a production schedule and an inventory policy
that will satisfy demand in future periods and at the same time minimize the
total production and inventory costs.
• A financial analyst would like to establish an investment portfolio from a variety
of stock and bond investment alternatives that maximizes the return on
investment.
• 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 that maximizes advertising effectiveness.
(Contd.,)
5
Applications of Optimization Problems
• A company had 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.
• Each problem has constraints that limit the degree to which the
objective can be pursued.
6
Linear Programming
• Linear optimization models are also known as linear programs.
• Linear programming:
7
A Simple Maximization Problem
8
A Simple Maximization Problem
• Problem formulation
9
A Simple Maximization Problem
• Illustration
• Par’s distributor to buy all the produced bags by the end of third
month.
10
A Simple Maximization Problem
• Operations involved in manufacturing a golf bag:
• Cutting and dyeing the material
• Sewing
• Finishing (inserting umbrella holder, club separators, etc.)
• Inspection and packaging
11
A Simple Maximization Problem
• Estimated total time available for the next three months to
perform different operations:
Department Number of hours
Cutting and Dyeing 630
Sewing 600
Finishing 708
Inspection and Packaging 135
13
A Simple Maximization Problem
• General guidelines for problem formulation (Contd.)
• Describe each constraint
Constraint Constraint
1 Number of hours of cutting and dyeing time used must be
less than or equal to the number of hours of cutting and
dyeing time available.
2 Number of hours of sewing time used must be less than or
equal to the number of hours of sewing time available.
3 Number of hours of finishing time used must be less than or
equal to the number of hours of finishing time available.
4 Number of hours of inspection and packaging time used
must be less than or equal to the number of hours of
inspection and packaging time available.
14
A Simple Maximization Problem
• General guidelines for problem formulation (Contd.)
• Define the decision variables.
• S = number of standard bags
• D = number of deluxe bags
• Write the objective in terms of the decision variables.
• If Par makes $10 for every standard and $9 for every deluxe bag:
• Total profit contribution = 10S + 9D = Objective function
15
A Simple Maximization Problem
• General guidelines for problem formulation (Contd.)
16
A Simple Maximization Problem
• General guidelines for problem formulation (Contd.)
• Constraint 3: ≤
1S + D ≤ 708
• Constraint 4: ≤
S + D ≤ 135
• Nonnegativity constraints - based on the fact that the number of
standard or deluxe bags produced cannot be negative.
S ≥ 0 and D ≥ 0 or S, D ≥ 0
17
Mathematical Model for the Par, Inc. Problem
• Max 10S + 9D
• subject to(s.t) S + 1D ≤ 630 Cutting and dyeing
S + D ≤ 600 Sewing
1S + D ≤ 708 Finishing
S + D ≤ 135 Inspection and packaging
S, D ≥ 0
18
Mathematical Model for the Par, Inc. Problem
19
Solving the Par, Inc. Problem
20
Solving the Par, Inc. Problem
• The geometry of the Par, Inc. problem
21
Solving the Par, Inc. Problem
• To find the optimal solution to the problem modeled as a linear
program:
• The optimal solution must have the highest objective function
value.
• The optimal solution must be a feasible solution.
• A feasible solution is a setting of the decision variables that satisfies all
of the constraints of the problem.
• Search over the feasible region which is a set of all possible
solutions.
• Find the solution that gives the best objective function value.
22
Solving Linear Programs with Excel Solver
• The first step is to construct the relevant what-if model.
• A what-if model for optimization allows the user to try different
values of the decision variables and see:
23
Figure 8.3 - What-If Spreadsheet Model for Par, Inc.
24
Figure 8.4 - Solver Dialog Box and Solution to the
Par, Inc. Problem
25
Solving Linear Programs with Excel Solver
• Using Solver:
• The optimal solution:
• To make 540 Standard bags and 252 Deluxe bags for a profit of $7,668.
• Using all the cutting and dyeing time as well as all finishing time, from
cells B19:B22 compared to C19:C22.
• The results are consistent with the results obtained in the Figures
8.1 and 8.2.
26
Figure 8.5 - The Solver Answer Report for the Par,
Inc. Problem
27
A Simple Minimization Problem
28
A Simple Minimization Problem
• Problem formulation
29
A Simple Minimization Problem
• Illustration
• Production requirements for M&D Chemicals:
• The combined production for products A and B must total at least
350 gallons.
• Separately a major customer’s order for 125 gallons of product A
must also be satisfied.
• Processing time:
• Product A: 2 hours/gallon
• Product B: 1 hour/gallon
• For the coming month, 600 hours of processing time are available.
30
A Simple Minimization Problem
• Production cost:
• Product A: $2/gallon; Product B: $3/gallon
• Objective: Minimizing the total production cost
• Problem formulation: To find the minimum-cost production
schedule.
• Define the decision variables and the objective function.
• Let A = number of gallons of product A
• B = number of gallons of product B
• Objective function = 2A + 3B
31
A Simple Minimization Problem
• Linear program for the M&D Chemicals problem:
• Min 2A + 3B
• s.t.
1A ≥ 125 - Demand for product A
1A + 1B ≥ 350 - Total production
2A + 1B ≤ 600 - Processing time
A, B ≥ 0
32
Figure 8.6 - Solver Dialog Box and Solution to
the M&D Chemical Problem
33
Special Cases of Linear Program Outcomes
34
Special Cases of Linear Program Outcomes
• Infeasibility
• Unbounded
35
Special Cases of Linear Program Outcomes
36
Special Cases of Linear Program Outcomes
• Illustration using the Par, Inc. problem
• Original objective function: 10S + 9D
• Assume the profit for the standard golf bag decreased to $6.30.
• Revised objective function: 6.3S + 9D
• The optimal solution occurs at two extreme points:
• Extreme point 4 (S = 300, D = 420) and
• Extreme point 3 (S = 540, D = 252)
37
Figure 8.8 - Par, Inc. Problem with an Objective
Function of 6.3S + 9D (Alternative Optimal Solutions)
38
Special Cases of Linear Program Outcomes
• Infeasibility:
• Means no solution to the linear programming problem.
• No points satisfy all the constraints and the nonnegativity conditions
simultaneously.
• Graphically, a feasible region does not exist.
• Infeasibility occurs because
• Management’s expectations are too high.
• Or, because too many restrictions have been placed on the problem.
39
Figure 8.9 - No Feasible Region for the Par, Inc. Problem with
Minimum Production Requirements of 500 Standard and 360 Deluxe
Bags
40
Special Cases of Linear Program Outcomes
• Interpretation of Infeasibility for the Par, Inc. problem
• Let the management know that the resources available are not
sufficient to make 500 standard bags and 360 deluxe bags.
• Provide details to the management on:
• Minimum amounts of resources that must be available.
• The amounts currently available.
• Additional amounts that would be required to accomplish this
level of production.
41
Special Cases of Linear Program Outcomes
• Resources needed to manufacture 500 standard bags and 360
deluxe bags:
42
Special Cases of Linear Program Outcomes
44
Special Cases of Linear Program Outcomes
• Illustration
• Consider the following linear program with two decision
variables, X and Y:
• Max 20X + 10Y
• s.t. 1X ≥2
1Y ≤ 5
X, Y ≥ 0
45
Figure 8.10 - Example of an Unbounded Problem
46
Special Cases of Linear Program Outcomes
47
Sensitivity Analysis
48
Sensitivity Analysis
• Sensitivity Analysis: The study of how the changes in the input
parameters of an optimization model affect the optimal solution.
49
Sensitivity Analysis
• Interpreting Excel Solver sensitivity report
• Consider the M&D chemicals problem:
A = number of gallons of product A
B = number of gallons of product B
• Min 2A + 3B
• s.t. 1A ≥ 125 - Demand for product A
1A + 1B ≥ 350 - Total production
2A + 1B ≤ 600 - Processing time
A, B ≥ 0
50
Figure 8.11 - Solver Sensitivity Report for the M&D
Chemicals Problem
51
Sensitivity Analysis
• Classical sensitivity analysis:
• Based on the assumption that only one piece of input data has
changed.
• It is assumed that all other parameters remain as stated in the
original problem.
• When interested in what would happen if two or more pieces of
input data are changed simultaneously:
• The easiest way to examine the effect of simultaneous changes is
to make the changes and rerun the model.
52
General Linear Programming Notation
and More Examples
53
General Linear Programming Notation and More
Examples
• Transportation planning
54
General Linear Programming Notation and More
Examples
• The general notation for linear programs uses the letter x with a
subscript.
• In the Par, Inc. problem the decision variables could be denoted as:
• = number of standard bags
• = number of deluxe bags
• Advantage - Formulating a mathematical model for a problem that
involves a large number of decision variables is much easier.
• Disadvantage - Not being able to easily identify what the decision
variables actually represent in the mathematical model.
55
General Linear Programming Notation and More
Examples
• Par, Inc. model using the general notation:
• Max 10 + 9
• s.t.
+ 1 ≤ 630 Cutting and dyeing
+ ≤ 600 Sewing
1 + ≤ 708 Finishing
+ ≤ 135 Inspection and packaging
, ≥0
56
General Linear Programming Notation and More
Examples
• Investment portfolio selection - portfolio selection problems
involve situations:
• In which a financial manager must select specific investments—for
example, stocks and bonds—from a variety of investment
alternatives.
• Illustration
• Welte Mutual Funds, Inc., located in New York City is looking for
investment opportunities for $100,000.
• The firm’s top financial analyst identified five investment opportunities
and projected their annual rates of return:
58
General Linear Programming Notation and More
Examples
• Investment guidelines:
59
General Linear Programming Notation and More
Examples
60
General Linear Programming Notation and More
Examples
• Constraint 1: + + + + = 100,000
• Constraint 2: + ≤ 50,000
+ ≤ 50,000
• Constraint 3: + )
• Constraint 4: + )
• Nonnegativity constraints: , , , , 0
61
General Linear Programming Notation and More
Examples
• Linear programming model for the Welte Mutual Funds
investment problem:
• Max 0.073 + 0.103 + 0.064 + 0.075 + 0.045
• s.t.
+ + + + = 100,000 Available funds
+ ≤ 50,000 Oil industry maximum
+ ≤ 50,000 Steel industry maximum
+) Government bonds minimum
+) Pacific Oil restriction
,,,, 0
62
Figure 8.12 - The Solution for the Welte Mutual
Funds Problem
63
General Linear Programming Notation and More
Examples
• Transportation planning
• Transportation problem arises in planning for the distribution of
goods and services from several supply locations to several
demand locations.
• Quantity of goods available at each supply location (origin) is
limited.
• Quantity of goods needed at each of several demand locations
(destinations) is known.
• Objective - Minimize the cost of shipping goods from the origins to
the destinations.
64
General Linear Programming Notation and More
Examples
65
General Linear Programming Notation and More
Examples
• Production capacities over the next three-month planning period for
one type of generator:
66
General Linear Programming Notation and More
Examples
• Objective:
• To determine the routes to be used and
• The quantity to be shipped via each route
• That provides the minimum total transportation cost
67
General Linear Programming Notation and More
Examples
• Transportation cost per unit for the Foster Generators
transportation problem ($):
Destination
Origin Boston Chicago St. Louis Lexington
Cleveland 3 2 7 6
Bedford 6 5 2 3
York 2 5 4 5
68
General Linear Programming Notation and More
Examples
• Supply constraints
x11 + x12 + x13 + x14 ≤ 5000 Cleveland supply
x21 + x22 + x23 + x24 ≤ 6000 Bedford supply
x31 + x32 + x33 + x34 ≤ 2500 York supply
• Demand constraints
x11 + x21 + x31 = 6000 Boston demand
x12 + x22 + x32 = 4000 Chicago demand
x13 + x23 + x33 = 2000 St. Louis demand
x14 + x24 + x34 = 1500 Lexington demand
69
General Linear Programming Notation and More
Examples
• A 12-variable, 7-constraint linear programming formulation of the
Foster Generators transportation problem:
Min 3x11 + 2x12 + 7x13 + 6x14 + 6x21 + 5x22 + 2x23 + 3x24 + 2x31 + 5x32 + 4x33 + 5x34
s.t. x11 + x12 + x13 + x14 ≤5000
x21 + x22 + x23 + x24 ≤6000
x31 + x32 + x33 + x34 ≤2500
x11 + x21 + x31 =
6000
x12 + x22 + x32 =
4000
x13 + x23 + x33 = 2000
71
General Linear Programming Notation and More
Examples
72
General Linear Programming Notation and More
Examples
• Illustration
• Relax-and-Enjoy Lake Development Corporation:
• Developing a lakeside community at a privately owned lake.
• Primary market includes all middle- and upper-income families
within approximately 100 miles of the development.
• Employed the advertising firm of Boone, Phillips, and Jackson
(BP&J) to design the promotional campaign.
73
Table 8.5 - Advertising Media Alternatives for the
Relax-and-Enjoy Lake Development Corporation
74
General Linear Programming Notation and More
Examples
• Problem Formulation:
• Budget: $30,000
• Restrictions imposed
76
General Linear Programming Notation and More
Examples
• Linear programming model for the Relax-and-Enjoy advertising
campaign planning problem:
• Max 65DTV + 90ETV + 40DN + 60SN + 20R Exposure quality
DTV ≤ 15
ETV ≤ 10
DN ≤ 25 Availability of
media
SN ≤ 4
R ≤ 30
1500DTV + 3000ETV + 400DN + 1000SN +100R ≤ 30,000 Budget
77
General Linear Programming Notation and More
Examples
• Linear programming model for the Relax-and-Enjoy advertising
campaign planning problem (Contd.):
78
Figure 8.15 - A Spreadsheet Model and the Solution for the
Relax-and-Enjoy Lake Development Corporation Problem
79
Figure 8.16 - The Excel Sensitivity Report for the Relax-
and-Enjoy Lake Development Corporation Problem
80
Generating an Alternative Optimal
Solution for a Linear Program
81
Generating an Alternative Optimal Solution for a
Linear Program
• Illustration
• Consider the Foster Generators transportation problem:
• From Figure 8.14, the optimal solution:
x11 = 1000, x12 = 4000, x13 = 0, x14 = 0
x21 = 2500, x22 = 0, x23 = 2000, x24 = 1500
x31 = 2500, x32 = 0, x33 = 0, x34 = 0
• Optimal cost: $39,500
• For the revised model to be optimal, the solution must give a
total cost of $39,500.
82
Generating an Alternative Optimal Solution for a
Linear Program
83
Generating an Alternative Optimal Solution for a
Linear Program
• Revised model:
Max x13 + x14 + x22 + x32 + x33 + x34
s.t. x11 + x12 + x13 + x14 ≤ 5,000
x21 + x22 + x23 + x24 ≤ 6,000
x31 + x32 + x33 + x34 ≤ 2,500
x11 + x21 + x31 =
6,000
x12 + x22 + x32 =
4,000
x13 + x23 + x33 = 2,000
85
Generating an Alternative Optimal Solution for a
Linear Program
• In the original solution (Figure 8.14):
• Boston distribution center is sourced from all three plants, whereas each of the
other distribution centers is sourced by one plant.
• Hence, the manager in the Boston distribution center has to deal with three
different plant managers, whereas each of the other distribution center
managers has only one plant manager.
• The alternative solution (Table 8.6) provides a more balanced solution.
• Managers in Boston and Chicago each deal with two plants, and those in St. Louis
and Lexington, which have lower total volumes, deal with only one plant.
• Because the alternative solution seems to be more equitable, it might be
preferred.
• Both the solutions give a total cost of $39,500.
86
Generating an Alternative Optimal Solution for a
Linear Program
• General approach to find an alternative optimal solution to a
linear program:
• Step 1 - Solve the linear program.
• Step 2 - Make a new objective function to be maximized. It is the
sum of those variables that were equal to zero in the solution from
Step 1.
• Step 3 - Keep all the constraints from the original problem. Add a
constraint that forces the original objective function to be equal to
the optimal objective function value from step 1.
• Step 4 - Solve the problem created in steps 2 and 3. If the objective
function value is positive, an alternative optimal solution is found.
87
QUESTIONS/CLARIFICATIONS