Beruflich Dokumente
Kultur Dokumente
289
The Optional Stop TSP If we drop the requirement that every stop must be visited, we then get the optional stop TSP. This might correspond to a job sequencing problem where vj is the profit from job j if we do it and cij is the cost of switching from job i to job j. Let:
cij xij
vj yj .
The constraint sets are: (1) Each city j can be visited at most once
i j
xij = yj
xjk = yj
(3) No subtours allowed for each subset, S, of cities not including the home base 1. xij < |S| 1, where |S| is the size of S.
i, j S
For example, if there are n cities, including the home base, then there are (n 1) (n 2)/(3 2) subsets of size 3. (4) Alternatively, (3) may be replaced by uj > ui + 1 (1 xij)n for j = 2, 3, . . . , n. Effectively, uj is the sequence number of city j in its tour. Constraint set (3) is much tighter than (4).
xij = 1
j
290
xij = 1
i
No subtours:
i, j s
1,
No overloads: For each set of cities T, including 1, which constitute more than a truckload:
i, j T
where k = minimum number of cities that must be dropped from T to reduce it to one load. This formulation can solve to optimality modest-sized problems of say, 25 cities. For larger or more complicated practical problems, the heuristic method of Clarke and Wright (1964) is a standard starting point for quickly finding good, but not necessarily optimal, solutions. The following is a generic LINGO model for vehicle routing problems:
MODEL: ! (VROUTE); ! The Vehicle Routing Problem (VRP) occurs in many service systems such as delivery, customer pick-up, repair and maintenance. A fleet of vehicles, each with fixed capacity, starts at a common depot and returns to the depot after visiting locations where service is demanded. Problems with more than a dozen cities can take lots of time. This instance involves delivering the required amount of goods to 9 cities from a depot at city 1; SETS: CITY/ Chi Den Frsn Hous KC LA Oakl Anah Peor Phnx/: Q, U; ! Q(I) = amount required at city I(given), must be delivered by just 1 vehicle. U(I) = accumulated deliveries at city I ; CXC( CITY, CITY): DIST, X; ! DIST(I,J) = distance from city I to city J X(I,J) is 0-1 variable, = 1 if some vehicle travels from city I to J, else 0 ; ENDSETS DATA: ! city 1 represents the common depot, i.e. Q( 1) = 0; Q= 0 6 3 7 7 18 4 5 2 6;
291
292
By following the links, you can observe that the trips are: Chicago - Houston; Chicago - LA; Chicago - Peoria - KC - Denver; Chicago - Phoenix - Anaheim - Fresno - Oakland.
Combined DC Location/Vehicle Routing Frequently, there is a vehicle routing problem associated with opening a new plant or distribution center (DC). Specifically, given the customers to be served from the DC, what trips are made, so as to serve the customers at minimum cost. A complete solution to the problem would solve the location and routing problems simultaneously. The following IP formulation illustrates one approach: Parameters Fi = fixed cost of having a DC at location i, Cj = cost of using route j, aijk = 1 if route j originates at DC i and serves customer k. There is exactly one DC associated with each route. Decision variables yi = 1 if we use DC i, else 0, xj = 1 if we use route j, else 0 The Model Minimize
i
Fi yi +
j
cj xj
293
cijxij
subject to (1)
i j
xij = n
i, j S
(2)
xij = 0 or 1.
An alternative to (1) and (2) is the following set of constraints based on assigning a unique sequence number uj to each node:
xij
i j
1, for j = 2, 3, 4,,n,
(n 2) (1
xij)+(n-3)xji, for j = 2, 3, 4, . . . , n.
In this case, uj is the number of arcs between node j and node 1. A numeric example of the sequence numbering formulation is in section 8.9.8. If one has a pure spanning tree problem, then the greedy algorithm of Kruskal (1956) is a fast way of finding optimal solutions.
j.
cij xij j