Presentation on theme: "DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall Publishers and Ardith E. Baker Chapter 5 LINEAR OPTIMIZATION: APPLICATIONS Part 1."— Presentation transcript:
DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall Publishers and Ardith E. Baker Chapter 5 LINEAR OPTIMIZATION: APPLICATIONS Part 1
Introduction Several specific models (which can be used as ____________for real-life problems) will be examined in this chapter. These models include:________________________MODEL _________________________MODEL Management must determine how to send products from various sources to various destinations in order to satisfy requirements at the ___________possible cost. Allows management to investigate __________ fixed-sized resources to determine the optimal _____________of salespeople to districts, jobs to machines, tasks to computers …
____________ (MULTIPERIOD) MODEL ___________________________MODEL _________________MODELS This model is concerned with designing an effective _____________campaign. These are models in which ______________ decision making must occur over more than one time period. FINANCIAL AND ________________PLANNING These business models illustrate the joint _____________of both production and financial resources. These models involve the movement or assignment of _________entities (e.g., money).
The Transportation Model In this example, the AutoPower Company makes a variety of battery and motorized uninterruptible electric power supplies (UPS’s). AutoPower has 4 final ___________plants in Europe and the diesel motors used by the UPS’s are produced in the US, shipped to 3 harbors and then sent to the assembly plants. Production plans for the ____________(July – Sept.) have been set. The requirements (demand at the _____________) and the available number of motors at harbors (supply at________) are shown on the next slide:
DemandSupply Assembly PlantNo. of Motors Required (1) Leipzig400 (2) Nancy 900 (3) Liege200 (4) Tilburg500 2000 Harbor No. of Motors Available (A) Amsterdam500 (B) Antwerp700 (C) Le Havre800 2000 Balanced
The Transportation Model AutoPower must decide how many motors to send from each harbor (________) to each plant (demand). The ______($, on a per motor basis) of shipping is given below. TO DESTINATION Leipzig Nancy Liege Tilburg FROM ORIGIN(1) (2) (3) (4) FROM ORIGIN (1) (2) (3) (4) (A) Amsterdam (A) Amsterdam 120 130 41 59.50 (B) Antwerp (B) Antwerp 61 40 100 110 (C) Le Havre (C) Le Havre 102.50 90 122 42
total transportation cost The goal is to ___________total transportation cost. per ____________ Since the costs in the previous table are on a per ____________, we can calculate ___________based on the following matrix (where x ij represents the number of units that will be transported from Origin i to Destination j): TO DESTINATION FROM ORIGIN1 2 3 4 FROM ORIGIN 1 2 3 4 A A 120x A1 130x A2 41x A3 59.50x A4 B B 61x B1 40x B2 100x B3 110x B4 C C 102.50x C1 90x C2 122x C3 42x C4 Total Transportation Cost Total Transportation Cost = 120x A1 + 130x A2 + 41x A3 + … + 122x C3 + 42x C4
The model has two general types of______________. 1. The number of items shipped from a harbor cannot ________the number of items available. A constraint is ___________for each origin that describes the total number of units that can be shipped. For Amsterdam: For Amsterdam: x A1 + x A2 + x A3 + x A4 < 500 For Antwerp: For Antwerp: x B1 + x B2 + x B3 + x B4 < 700 For Le Havre: For Le Havre: x C1 + x C2 + x C3 + x C4 < 800 Note: We could have used an “=“ instead of “<“ since supply and demand are ___________ for this model. However, the supply inequality constraints will be ________at optimality giving the same effect.
2. Demand at each plant must be_____________. A constraint is required for each destination that describes the total number of units ______________. For Leipzig: For Leipzig: x A1 + x B1 + x C1 > 400 For Nancy: For Nancy: x A2 + x B2 + x C2 > 900 For Liege: For Liege: x A3 + x B3 + x C3 > 200 Note: We could have used an “=“ instead of “>“ since supply and demand are balanced for this model. However, the demand _________ constraints will be binding at __________ giving the same effect. For Tilburg: For Tilburg: x A4 + x B4 + x C4 > 500
Here is the spreadsheet model using Excel and solved with Solver:
Here is the Sensitivity Report from Solver for the Transportation Model:
Variations on the Transportation Model Suppose we now want to _____________the value of the objective function instead of minimizing it. In this case, we would use the same model, but now the objective function coefficients define the _______________________(i.e., unit returns) instead of unit costs. In the Solver dialog, you would check the _____radio button before solving the problem. Additionally, your interpretation of Solver’s Sensitivity Report would reflect the maximization of the_______________________. Solving Max Transportation Models
Variations on the Transportation Model When supply and demand are not equal, then the problem is_____________. There are two situations: When supply is __________than demand: When Supply and Demand Differ In this case, when all demand is_________, the remaining supply that was not allocated at each _________would appear as _______in the supply constraint for that origin. Using ___________in the constraints (as in the previous example) would not cause any problems in Solver.
Variations on the Transportation Model In this case, the LP model has no ___________ solution. However, there are two approaches to solving this problem: 1. ____________the supply constraints to be ______________and rewrite the demand constraints to be <. Unfulfilled ___________will appear as slack on each of the demand constraints when Solver optimizes the model. When __________is greater than supply:
Variations on the Transportation Model 2. Revise the model to append a ___________ origin, called a______________, with supply equal to the difference between total demand and total supply. The purpose of the dummy origin is to make the problem (total supply = total demand) so that Solver can solve it. The cost of supplying any destination from this origin is________. Once solved, any supply allocated from this origin to a destination is interpreted as_______________.
Variations on the Transportation Model Certain routes in a transportation model may be unacceptable due to_______________, delivery time, etc. In this case, you can assign an __________large unit cost number (identified as M) to that route. This will force Solver to ____________the use of that route since the cost of using it would be much larger than that of any other _____________alternative. Eliminating Unacceptable Routes Choose M such that it will be larger than any other _____________number in the model.
Variations on the Transportation Model Generally, LP models do not produce ____________ solutions. The exception to this is the _______________model. In general: Integer Valued Solutions If all of the supplies and demands in a transportation model have integer values, the _____________of the decision variables will also have integer values.
Variations on the Transportation Model _______in the Allowable Increase/Decrease columns for objective coefficients in the Sensitivity Report indicate that there are __________optimal solutions. Using Alternative Optima to Achieve Multiple Objectives Using the AutoPower example, examine the effects of such occurrences. Suppose that due to a potential trucker’s strike, you need to find a cheaper transportation schedule that also ___________the cost of shipping motors out of Le Havre harbor. You would need to shift costs away from Le Havre to reduce AutoPower’s risk.
In this case, the presence of alternative _______ would help avoid some of the risk without increasing ____________. From the previous solution, we find that there are an _________number of alternative optima that produce a minimal cost of $121,450. So, the original objective can then be recast as an additional total cost ___________, thereby allowing Solver to be given a new OV to minimize.
Here is the modified spreadsheet model. Note the additional constraint $G$19 < $H$19. Note that the new solution provides feasible ______________(no more costly than the original solution), while __________Le Havre’s total costs (a shift of $18,000 to other routes).
The Assignment Model In general, the Assignment model is the problem of determining the ____________assignment of n “indivisible” agents or objects to n tasks. For example, you might want to assign Salespeople to sales territories Computers to networks Consultants to clients Service representatives to service calls Lawyers to cases Commercial artists to advertising copy The important constraint is that each person or machine be assigned to ____________________task.
The Assignment Model We will use the AutoPower example to illustrate Assignment problems. AutoPower Europe’s Auditing Problem AutoPower’s European headquarters is in Brussels. This year, each of the four corporate vice-presidents will visit and audit one of the assembly plants in June. The plants are located in: Leipzig, Germany Liege, Belgium Nancy, France Tilburg, the Netherlands
The issues to consider in assigning the different vice-presidents to the plants are: 1. ______________the vice-presidents’ areas of expertise with the importance of specific problem areas in a plant. 2. The ______the management audit will require and the other demands on each vice- president during the two-week interval. 3. Matching the _____________ability of a vice- president with the plant’s dominant language. Keeping these issues in mind, first estimate the (___________) cost to AutoPower of sending each vice-president to each plant.
To determine__________, make the assignment and then add up the costs associated with the assignment. PLANT Leipzig Nancy Liege Tilburg V.P. (1) (2) (3) (4) V.P. (1) (2) (3) (4) Finance (F) Finance (F) 24 10 21 11 Marketing (M) Marketing (M) 14 22 10 15 Operations (O) Operations (O) 15 17 20 19 Personnel (P) Personnel (P) 11 19 14 13 For example, consider the following assignment: Total cost = 24 + 22 + 20 + 13 = 79 The question is, is this the ___________assignment?
The Assignment Model Complete ____________is the calculation of the total cost of each feasible assignment pattern in order to pick the assignment with the ___________total cost. Solving by Complete Enumeration This is not a problem when there are only a few rows and columns (e.g., vice-presidents and plants). However, complete enumeration can quickly become ______________as the model grows______.
For example, determine the number of ___________ in the AutoPower (4x4) model. Consider assigning the vice-presidents in the order F, M, O, P. 1. F can be assigned to any of the 4 plants. 2. Once F is assigned, M can be assigned to any of the remaining 3 plants. 3. Now O can be assigned to any of the remaining 2 plants. 4. P must be assigned to the only remaining plant. There are 4 x 3 x 2 x 1 = 24 possible solutions. In general, if there are n rows and n columns, then there would be n(n-1)(n-2)(n-3)…(2)(1) = n! (n________) solutions. As n increases, n! increases rapidly. Therefore, this may not be the best method.
The Assignment Model For this model, let x ij = number of V.P’s of type i assigned to plant j where i = F, M, O, P j = 1, 2, 3, 4 The LP Formulation and Solution Notice that this model is _____________since the total number of V.P.’s is equal to the total number of______________. Remember, only ______V.P. (supply) is needed at each plant (demand).
Here is the spreadsheet model using Excel and solved with Solver:
The Assignment Model The Assignment model is similar to the Transportation model with the exception that ______ cannot be distributed to more than one___________. Relation to the Transportation Model In the Assignment model, all supplies and demands are one, and hence_________. Thus, Solver will not produce any ____________allocations. As a result, in the Solver solution, each decision variable cell will either contain a __(no assignment) or a ___(assignment made). In general, the assignment model can be formulated as a transportation model in which the supply at each ______and the demand at each __________= 1.
The Assignment Model Case 1: Supply __________Demand Unequal Supply and Demand: The Auditing Problem Reconsidered In this example, suppose the company President decides to audit the plant in Tilburg. Now there are 4 V.P.’s to assign to 3 plants. Here is the cost (in $000s) matrix for this scenario: PLANT NUMBER OF V.P.s V.P.123 AVAILABLE F F241021 1 M M142210 1 O O151720 1 P P111914 1 No. of V.P.s No. of V.P.s 4 Required Required111 3
To formulate this model, simply _____the constraint that required a V.P. at plant 4 and Solve: Note that one of the V.P.s has not been assigned to a plant.
The Assignment Model Case 2: _________Exceeds Supply Unequal Supply and Demand: The Auditing Problem Reconsidered In this example, assume that the V.P. of Personnel is unable to participate in the European audit. Now the ___________is as follows: PLANT NUMBER OF V.P.s V.P.1234 AVAILABLE F F24102111 1 M M14221015 1 O O15172019 1 No. of V.P.s No. of V.P.s 3 Required Required1111 4
Demand > Supply: Adding a _____________V.P. In this form, the model is _____________. To fix this, you can 1. Modify the inequalities in the ____________ (similar to the Transportation example) 2. Add a dummy V.P. as a ____________to the cost matrix (shown below). PLANT NUMBER OF V.P.s V.P.1234 AVAILABLE F F24102111 1 M M14221015 1 O O15172019 1 Dummy Dummy 0 0 0 01 No. of V.P.s No. of V.P.s 4 Required Required1111 4
In the solution, the dummy V.P. would be assigned to a plant. In reality, this plant would not be audited.
The Assignment Model In this Assignment model, the __________from each assignment is a _________rather than a cost. Maximization Models profit For example, AutoPower must now assign four new salespeople to three territories in order to _________ profit. The effect of assigning any salesperson to a territory is measured by the anticipated __________ increase in profit contribution due to the _____________.
Here is the profit matrix for this model. NUMBER OF NUMBER OF TERRITORY SALESPEOPLE TERRITORY SALESPEOPLE SALESPERSON123 AVAILABLE A A403020 1 B B182822 1 C C121620 1 D D252427 1 No. of No. of 4 Salespeople Salespeople 1113Required This value represents the profit contribution if A is assigned to Territory 3.
and solved with Solver: Here is the spreadsheet model using Excel
The Assignment Model Certain __________________in the model may be unacceptable for various reasons. Situations with Unacceptable Assignments In this case, you can assign an arbitrarily ______unit cost (or small unit_____) number to that assignment. This will force Solver to ____________the use of that assignment since, for example, the cost of making that assignment would be much larger than that of any other feasible________________.
The Media Selection Model Advertising agencies use ______________models to develop effective advertising campaigns. The basic question that they try to answer is: How many “____________” (ads) should the firm purchase in each of several possible media (e.g., radio, TV, newspapers, magazines, and Internet Web pages)? Constraints on the decision maker are typically: Advertising____________ the number of ads in each___________ other “______________” from management
The Media Selection Model The ________________________may also influence the Media Selection decision. In other words, the effectiveness of an ad ___________as the number of exposures in a medium _________during a specified period of time. The _________________of this model is unusual. Conceptually, the model should find the advertising campaign that ___________demand and satisfies the ___________and other constraints. However, the approach most often used is to measure the response to an ad in a medium in terms of_________________.
The Media Selection Model exposure unit An exposure unit is a __________measure based on: An exposure unit can be thought of as a kind of _____________________. So the goal is to __________the total exposure units, taking into account other properties of the model. The __________of the ad The _____________of the potential market... In other words, it is an arbitrary measure of the “______________” of an ad.
The Media Selection Model The RollOn company has decided to start a new product line of motorcycle-like machines with three oversized tires. Example: Promoting a New Product An advertising campaign with a budget of $72,000 is planned for the introductory month. RollOn decides to use daytime______, evening TV, and daily newspaper ads in its advertising________________. ADVERTISINGNUMBER OF PURCHASINGCOST PER MEDIUM UNITS REACHED PER AD AD ($) MEDIUM UNITS REACHED PER AD AD ($) Daytime Radio Daytime Radio 30,000 1700 Evening TV Evening TV 60,000 2800 Daily Newspaper Daily Newspaper 45,000 1200 The cost per ad in each media are given below:
Slope = 60 It is assumed that each of the first 10 radio ads has a value of 60 exposure units, The Media Selection Model RollOn arbitrarily selects a scale from 0 to 100 for each ad offering. Example: Promoting a New Product and each radio ad after the first 10 is rated as having 40 exposures. Slope = 40
The previous graph shows that radio adds ______ from diminishing returns (as evidenced by the change in __________from 60 to 40). RollOn subjectively determines that the first radio adds are more _______than later ones. In addition, they feel that the same situation will occur with ____ and newspaper ads. The _______________per ad for each medium are given below: ADVERTISING ALL FOLLOWING MEDIUM FIRST 10 ADS ADS MEDIUM FIRST 10 ADS ADS Daytime Radio Daytime Radio 60 40 Evening TV Evening TV 80 55 Daily Newspaper Daily Newspaper 70 35
TV Newspaper Radio 55 80 70 35 60 40 Here is a plot of the total exposures as a function of the number of ads in each medium.
RollOn want to ensure that the advertising campaign will satisfy the following important criteria: 1. No more than 25 ads per__________- 2. A total of 1,800,000 ____________units must be reached across all media 3. At least ¼ of the ads must appear on TV (____________requirement) Now, to model this Media Selection model as an LP model, let x 1 = no. of daytime radio ads up to the first 10 y 1 = no. of daytime radio ads after the first 10 x 2 = no. of evening TV ads up to the first 10 y 2 = no. of evening TV ads after the first 10 x 3 = no. of newspaper ads up to the first 10 y 3 = no. of newspaper ads after the first 10
The __________________is: Max 60x 1 + 40y 1 + 80x 2 + 55y 2 + 70x 3 + 35y 3, To determine the______________, remember: x 1 + y 1 = total radio ads x 2 + y 2 = total TV ads x 3 + y 3 = total newspaper ads Also remember that the total advertising expenditure cannot exceed _______and the cost of each radio ad is $1700, each TV ad is $2800 and each newspaper ad is_______. Therefore, the total expenditure constraint is: 1700x 1 + 1700y 1 + 2800x 2 + 2800y 2 + 1200x 3 + 1200y 3 < 72,000
constraints The constraints are: x 1 + y 1 < 25 1700x 1 + 1700y 1 + 2800x 2 + 2800y 2 + 1200x 3 + 1200y 3 < 72,000 x 2 + y 2 < 25 x 3 + y 3 < 25 30,000x 1 + 30,000y 1 + 60,000x 2 + 60,000y 2 + 45,000x 3 + 45,000y 3 > 1,800,000 Total ________expenditure less than $72,000: No more than 25 ads in a single _________: The entire campaign must reach at least 1,800,000 __________________:
__________Constraint (at least ¼ of the ads must appear on event TV) : x 2 + y 2 x 1 + y 1 + x 2 + y 2 + x 3 + y 3 > ¼ Using this constraint in Excel will produce a Solver “Conditions for Assume Linear Model are not Satisfied”______________. You can make this constraint linear by multiplying out the _______________: x 2 + y 2 >.25(x 1 + y 1 + x 2 + y 2 + x 3 + y 3 )
Here is the Excel spreadsheet model after Solving: