9.5 Shortest-Route Problem

The objective of the shortest-route problem is to find the shortest distance from one location to another. In a network, this often involves determining the shortest route from one node to each of the other nodes. This problem can be modeled as a linear program with 0 and 1 variables, or it could be modeled and solved using a specialized algorithm that is presented in Module 8. The following example is a typical shortest-route problem.

Every day, Ray Design, Inc., must transport beds, chairs, and other furniture items from the factory to the warehouse. This involves going through several cities, and there are no direct interstate highways to make the delivery easier. Ray would like to find the route with the shortest distance. The road network is shown in Figure 9.5.

A graph with 6 nodes and edges between them represents roads from Ray Design’s plant to warehouse.

Figure 9.5 Roads from Ray’s Plant to Warehouse

The shortest-route problem may be viewed as a special type of transshipment problem with one source having a supply of 1, one destination having a demand of 1, and a number of transshipment points. This type of problem can be modeled as a linear program with 0 and 1 variables. Ray is trying to decide which of the routes (arcs) to choose to be a part of the delivery system. Therefore, the decision variables will indicate whether a particular arc is chosen to be a part of the route taken. For the Ray Design, Inc., example, the objective is to minimize the total distance (cost) from the start to the finish. The constraints will specify that the number of units (either 0 or 1) going into a node must equal the number going out of that node. The variables are defined as

Xij=1 if arc from node i to node j is selected and Xij=0 otherwise

Since the starting point is node 1, we will not include variables going from node 2 or 3 back to node 1. Similarly, since node 6 is the final destination, we will not include any variable that starts at node 6. Viewing this as a transshipment problem, the origin node (node 1) must have one unit shipped out of it. This would be

X12+X13=1

The final destination node (node 6) must have one unit shipped to it, and this is written as

X46+X56=1

Each intermediate node will have a constraint requiring the amount coming into the node to equal the amount going out of that node (i.e., the flow into a node minus the flow out of a node must equal zero). For node 2, this would be

X12+X32=X23+X24+X25

This simplifies to

X12+X32X23X24X25=0

The other constraints would be constructed in a similar manner. The linear program is

Minimize distance = 100X12 + 200X13 + 50X23 + 50X32 + 200X24 + 200X42 + 100X25+ 100X52 + 40X35 + 40X53 + 150X45 + 150X54 + 100X46 + 100X56

subject to

X12 + X13=1Node 1X12 + X32  X23  X24  X25=0Node 2X13 + X23  X32  X35=0Node 3X24 + X54  X42  X45  X46=0Node 4X25 + X35 + X45  X52  X53  X54  X56=0Node 5X46 + X56=1Node 6All variables=0or 1

While this problem could be solved as a linear program, using Excel QM is the easiest way to obtain the solutions. To solve a shortest-route problem, from the Excel QM ribbon, select Network Analysis as LP and then choose Shortest Path. In the initialization window that opens, you enter the number of nodes (6) and click OK. A worksheet is developed, as seen in Program 9.7. Enter the data for the distances, and then click Solver from the Data ribbon. Click Solve from the Solver input window, and the results (flows) are put into the worksheet. From Program 9.7, we see that

A spreadsheet illustrates two tables along with certain instructions.

Program 9.7 Ray Designs, Inc., Solution in Excel 2016 Using Excel QM

X12=X23=X35=X56=1

So Ray will travel from city 1 to city 2, then to city 3, then to city 5, and then to the final destination, city 6. The total distance is 290 miles.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset