1 / 15

Example 7.6

This model calculates the ideal location for a warehouse to minimize total distance traveled when shipping products to four customers. It considers the coordinates of the customers and their annual shipment demands.

bcantu
Download Presentation

Example 7.6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Example 7.6 Facility Location Models

  2. Background Information • The Lafferty Company wants to locate a warehouse from which it will ship products to four customers. • The location (in the x-y plane) of the four customers and the number of shipments per year needed by each customer are given in this table.

  3. Background Information -- continued • All locations are in miles, relative to the point x=0 and y=0. • A single warehouse must be used to service all of the customers. • Lafferty wants to determine the location of the warehouse that minimizes the total distance traveled from the warehouse to the customers.

  4. Solution • For the spreadsheet model we need to keep track of the following: • The x and y coordinates of the warehouse and each customer • The distance between the warehouse and each customer • The total annual distance traveled from the warehouse to customers.

  5. LAFFERTY.XLS • The model appears on the next slide. • This file can be used to build the model.

  6. Developing the Model • The model can be formed as follows. • Inputs. Enter the given customer data in the shaded ranges. • Coordinates of warehouse. Enter any trial values in Location range for the x- and y-coordinates of the warehouse. • Distances from warehouse to customers. Calculate the distances from the warehouse to the customers in the Distances range. To do so, recall that the (straight line) distance between the two points ( a,b ) and (c,d ) isTherefore, enter the formula =SQRT((B5-$B$11)^2+(C5-$C$11)^2)in cell B14 and copy it to the rest of the Distances range.

  7. Developing the Model -- continued • Total annual distance. The total annual distance traveled from the warehouse to meet the demands of all customers iswhere ni is the number of trips per year for customer i and di is the distance from the warehouse to customer i. Therefore, calculate the total annual distance traveled from the customers to the warehouse in the TotDistance cell with the formula =SUMPRODUCT(Shipments,Distances).

  8. Using the Solver • This model requires the “leanest” Solver setup so far. • All we need to specify is that TotDistance should be minimized and the Location range contains the changing cells. • There are no constraints, not even nonnegativity constraints. • Also, because of the squares in the straight-line distance formula, this model is nonlinear, so the Assume Linear Model box should not be checked.

  9. Solution • The warehouse should be located at x=9.31 and y=5.03. Each year a total of 5456.54 miles will be traveled annually from the warehouse to the customers. • This solution represents a compromise. On the other hand, Lafferty would like to position the facility near customer 4 because customer 4 is fairly far from the other customers, the warehouse is located in a more central position.

  10. Sensitivity Analysis • One possible sensitivity analysis is to see how the optimal location of the warehouse changes as the annual number of shipments to any particular customer increases. • We do this for customer 4 in the table on the following slide. • We run SolverTable with the number of shipments to customer 4 as the single input cell, allowing it to vary from 300 to 700 in increments of 50, and we keep track of the total annual distance and the warehouse location coordinates.

  11. Sensitivity Analysis -- continued • As expected, the total annual distance increases as the annual shipments to customer 4 increase. • Also, the warehouse gradually gets closer to customer 4. In fact, when the annual shipments to customer 4 are 600 or above, the optimal location for the warehouse is at customer 4.

  12. Is the Solver Solution Optimal? • The Lafferty model has no constraints. • An NLP with no constraints is called an unconstrained NLP. Therefore, we know that the Solver will find an optimal solution if the objective is a convex function of the x- and y-coordinates of the warehouse. • It can be shown that the annual distance traveled is indeed a convex function of the coordinates of the warehouse.Therefore, we know that the Solver solution is optimal.

  13. Is the Solver Solution Optimal? -- continued • However, what if you do not know whether the objective is a convex function? • Then the best strategy is to try different starting solutions in the Locations range, run the Solver on each of them, and see whether they all take you to the same solution. • In fact, we have made this easy for you in the LAFFERTY.XLS file.

  14. Is the Solver Solution Optimal? -- continued • We have written two short macros that are automated by clicking on buttons. • Click on the left buttons to randomly generate a new starting location. • Then click on the right button to run Solver. • You should find that they always take you to the same solution.

More Related