Distribution patterns
2.3 Modelling with more complex distribution patterns
2.3.1 Regular distribution patterns
In a regular distribution pattern, the time between consecutive deliveries to a customer has to be constant. This means that the time between consecutive iterations of a tour also has to be constant. Consider e.g. a distribution pattern with two tours: the rst tour, which takes 5 hours, has frequency 2, and the second tour, which takes 8 hours, has frequency 1. The minimal cycle time Tmin of this distribution pattern is 18 hours, but it is impossible to make the rst tour once every 9 hours, because every second time, the second tour has to be made in between. The minimal cycle time of 18 hours is thus infeasible.
For feasibility, the minimal time between two iterations of the rst tour has to be 13 hours (= 5 + 8), meaning that the actual lower bound on the cycle time is 26 hours.
This simple example shows that the restriction of equidistant deliveries intro-duces idle time into the routing scheme of a vehicle. Every now and then, the vehicle has to wait before it can start its next tour. To keep the inter-val of feasible cycle times as large as possible, a feasible routing scheme with
2.3 Modelling with more complex distribution patterns 27
a minimum of idle time has to be constructed. Thus, in the subproblem of scheduling the tours in a regular distribution pattern, our objective is to min-imize the makespan of the schedule while maintaining constant times between consecutive iterations of the same tour. This minimal makespan is called the
`schedule time' and denoted Tsched. The interval of feasible cycle times is then [max (Tmin; Tsched) ; Tmax].
To mathematically model this scheduling problem, the following notation is used.
K =Pn
i=1ki: the total number of tours to be made in the schedule.
TDi= t+ TT SP (Si+)+P
j2Sitj: duration of tour i 2 1::n.
In the schedule, K tours are made. The problem is to determine in which order the tours have to be made. The variables that are needed for the mathematical model are:
Xilk: binary variable indicating whether the l'th iteration of tour Ti is in k'th position in the sequence (i 2 1::n; l 2 1::ki; k 2 1::K).
tkil: starting time of the l'th iteration of tour Ti if it is in k'th position in the sequence, 0 otherwise (i 2 1::n; l 2 1::ki; k 2 1::K).
Tsched: makespan of the schedule.
The mathematical model for the tour scheduling problem in a regular distri-bution pattern is shown in Table 2.5.
The objective is to minimize the makespan of the schedule, while minimizing a number of constraints. Constraint (2.27) states that only one tour can be in k'th position of the sequence, while Constraint (2.28) states that the l'th iteration of tour i has to appear once in the sequence. This also means that the variable tkil is non-zero for only one value of k, which is imposed by Con-straint (2.29). ConCon-straints (2.30) x a starting point in the cyclic schedule, without loss of generality. Constraint (2.31) indicates that a tour can only be started when the preceding tour is nished, and Constraint (2.32) indicates that the last tour in the sequence has to be nished within the schedule time Tsched. Constraint (2.33) ensures that deliveries are equidistant such that the distribution pattern is regular.
Solving the problem of scheduling a regular distribution pattern is computa-tionally very complex. Since it contains a generalized assignment problem, it is in fact an NP-hard problem. Even for our small computational example below with only 4 tours with dierent frequencies, about half a minute is needed to solve the scheduling problem to optimality. We are well aware that the formu-lation of the problem given here can be signicantly improved, and interesting valid inequalities can be added. However, this is beyond the scope of this
Table 2.5: Mathematical model for regular distribution pattern scheduling
2.3 Modelling with more complex distribution patterns 29
work. Because of the computational complexity, a heuristic for this scheduling subproblem is developed in Section 3.6.
The formula for the cost rate of a regular distribution pattern is obtained from the formula for multi-tour cost rates by introducing the delivery frequencies ki.
C = + 1
A regular distribution pattern has a theoretical optimal cycle time, minimizing the cost rate. It is given by the following formula.
Teoq=
For the illustrative 4-customer example, we consider the distribution pattern in which all customers are in a separate tour. If all these tours have frequency 1, the minimal cycle time is 22 hours, while the maximal cycle time is 30 hours.
This solution is feasible, but it is not a good solution because the vehicle load is only 30 items (or 25% of the vehicle capacity) for the tour to customer 3.
To use vehicle capacity more eciently and thus obtain a better solution, the frequencies of the tours are adapted. With frequencies proportional to the de-mand rates, the vehicle always leaves the depot with a full truckload. This means that the frequencies should be 4 for customer 1, 3 for customer 2, 1 for customer 3 and 2 for customer 4. This solution has a travel time of 52 hours (= 4 6 + 3 4 + 8 + 2 4), and a maximal cycle time of 120 hours (= min(480=4; 360=3; 120=1; 240=2)). The schedule for this regular distribu-tion pattern with minimal makespan takes 120 hours (see Figure 2.3), which happens to be exactly the maximal cycle time. During these 120 hours, the vehicle is travelling only 52 hours. This distribution pattern is thus feasible if the cycle time is 120 hours. The cost rate is then C = +5052T + T 0:15 2 = 20:00 + 21:67 + 36:00 = 77:67 euro per hour.
When comparing this full-truckload distribution pattern as shown in Figure 2.3 to the multi-tour solution presented above (see Figure 2.2), it can be seen that the stock levels at the customers are much higher. Indeed, in the multi-tour solution, the best cycle time of 24 hours was below the EOQ cycle time, giving a cost balance in which distribution costs are higher than holding costs. In
this full-truckload distribution pattern, it is the other way around. The best feasible cycle time of 120 hours is above the EOQ cycle time, such that the holding costs are now higher than the distribution costs. Below, other solutions are presented that give better cost trade-os.
Within each cycle, the following happens. At time t = 0, the vehicle leaves to deliver a full truckload to customer 1. After 6 hours, the vehicle returns to the depot, is lled and leaves fully loaded for customer 2. Four hours later, the vehicle is in the depot again and a full truckload is dispatched for customer 3.
When the vehicle returns from this tour, it has to wait for 12 hours, until time t = 30, when the tour to customer 1 is done for the second time. Six hours later, the vehicle returns and immediately makes the tour to customer 4. After this tour and 6 hours of waiting, the tour to the second customer is made for the second time. Then, the vehicle has to wait for 10 hours in the depot before making the tour to customer 1 for the third time. After another 20 hours of waiting, customer 2 is visited for the third time, immediately followed by the fourth visit to customer 1 and the second visit to customer 4. The cycle ends with another 20 hours of waiting time in the depot.
Table 2.6 gives an overview of the main characteristics of this full-truckload distribution pattern.
Table 2.6: Characteristics of the full-truckload distribution pattern
Tmin 52h
Tsched 120h
Tmax 120h
Teoq 93:1h
Cycle time 120h
q1 120 units
q2 120 units
q3 120 units
q4 120 units
Transport cost rate 21:67 e/h Holding cost rate 36:00 e/h Cost rate 77:67 e/h Idle time 68=120 = 56:7%
Vehicle occupation 43:3%
Capacity utilization 100%
Due to the incompatibility in the frequencies of customers 1 and 2, a lot of idle time is necessary to obtain a feasible schedule. As a consequence, the optimal cycle time of 93:1 hours is infeasible and this regular distribution pattern turns out to be even more expensive than the cheapest multi-tour solution.
2.3 Modelling with more complex distribution patterns 31
Figure 2.3: Schedule and stock levels for the full-truckload distribution pattern
Choosing the right tour frequencies
Every tour has its own optimal cycle time (see Section 2.1). In a distribution pattern, the tour frequencies should therefore be chosen such that the resulting cycle times for the tours are as close as possible to their respective optimal cycle times. If we denote the optimal tour cycle times as Ti, then we are looking for frequencies ki and a cycle time T such that T=ki Ti.
Looking at the 4 tours in our illustrative example, the best feasible cycle times for the individual tours are respectively 30, 29:8, 73:0 and 36:5 hours. The following sets of values for the ki's then seem appropriate: (3; 3; 1; 2) and (2; 2; 1; 2).
The cheapest solution is obtained when adopting the rst of these possibilities:
k1= k2= 3; k3= 1 and k4= 2. This gives a distribution pattern with a travel time of 46 hours, and a maximal cycle time of 90 hours. The schedule time is 66 hours (see Figure 2.4). The optimal cycle time of this distribution pattern is:
Teoq =q
5046
0:1513=6 = 84:1 hours. The cost rate obtained with a rounded cycle time of 84 hours is C = +5046T +T 0:1513=6 = 20:00+27:38+27:30 = 74:68 euro per hour.
- t(h)
1 4 2 3 1 2 4 1 2
- t(h)
1 4 2 3 1 2 4 1 2
0h 22h 44h 66h
0h 28h 56h 84h
Figure 2.4: Schedule for the distribution pattern with adjusted frequencies This is what happens during one cycle. The vehicle rst delivers 112 units to customer 1, followed by a delivery of 84 units to customer 4, a delivery of 84 units to customer 2, and a delivery of 84 units to customer 3. Then there is 6 hours of idle time, after which the tours to customer 1 and customer 2 are repeated with 4 hours in between. After this, there is again 6 hours of idle time before the tour to customer 4 is repeated. Finally, the tours to customers 1 and 2 are made once more.
Table 2.7 gives an overview of the main characteristics of this solution.
In this solution, the diering tour frequencies still result in a large amount of idle time. However, the optimal cycle time is now feasible, such that the resulting cost rate is cheaper than that of the full-truckload distribution pattern and the multi-tour solutions presented above.
Powers-of-two
In the regular distribution patterns proposed above for the 4-customer example, a lot of idle time is unavoidable because the frequencies of customers 1, 2 and
2.3 Modelling with more complex distribution patterns 33
Table 2.7: Characteristics of the distribution pattern with adjusted frequencies
Tmin 46h
Tsched 66h
Tmax 90h
Teoq 84:1h
Cycle time 84h
q1 112 units
q2 84 units
q3 84 units
q4 84 units
Transport cost rate 27:38 e/h Holding cost rate 27:30 e/h Cost rate 74:68 e/h Idle time 38=84 = 45:2%
Vehicle occupation 54:8%
Capacity utilization 77:8%
4 are `incompatible'. To alleviate this, we could restrict the tour frequencies to a limited set of `compatible' values. The most obvious approach is to restrict frequencies to powers-of-two, such that for every two possible frequencies, one is always an integer multiple of the other. Using this set of compatible frequencies will limit the need for idle time in the schedules.
Powers-of-two frequencies are often used in scheduling multiple products on a single machine (see e.g. Hahm and Yano, 1995 [21]). For these lot-sizing problems, it has been shown that powers-of-two frequency policies are within 6% of optimality.
When using powers-of-two frequencies, the regular scheduling problem can be reformulated. All frequencies ki can now be written as 2mi, with mi 2 N+. The highest power-of-two, maxi(mi) is denoted M. All tours have a frequency that is a divisor of the highest frequency 2M. As a result, the schedule can be considered as a collection of 2M `buckets'. In each bucket, the tours that have the highest frequency are made together with some other tours with a lower frequency. The schedule is regular if tours are assigned to equidistant buckets.
Consider e.g. a tour with frequency 4 when the highest frequency is 8. Then this tour has to reappear every second bucket to obtain a regular schedule, so the possible assignments are to buckets 1 3 5 7 or 2 4 6 8.
In Table 2.8, a mathematical model is given for assigning tours to buckets with the objective of obtaining a regular schedule with minimal makespan. In this model, the following variables are used:
Xim: binary variable indicating whether the tour to Si is included in the m'th bucket (i 2 1::n; m 2 1::2M).
Lm: length of the m'th bucket (m 2 1::2M)
Table 2.8: Regular scheduling with powers-of-two Minimize 2ML1
subject to:
2M miX
m=1
Xim= 1 i = 1::n (2.37)
Xim= Xim+k2M mi 8<
:
i = 1::n m = 1::2M mi
k = 1::2mi 1 (2.38) Lm=Xn
i=1
(TDi Xim) m = 1::2M (2.39)
L1 Lm m = 2::2M (2.40)
Lm 0; Xim2 f0; 1g
i = 1::n m = 1::2M
Constraint (2.37) determines the rst bucket to which a tour has to be assigned.
Constraint (2.38) imposes that the assignment of tours to buckets is equidistant, making sure that the schedule is regular. Constraint (2.39) denes the length of the buckets and Constraint (2.40) states that the rst bucket should be the longest of all. This can be done without loss of generality. Since the makespan of the schedule has to be 2M times the length of the longest bucket, the objective is to minimize the length of the rst, longest bucket.
This reformulation of the regular scheduling problem for the case of powers-of-two frequencies is still computationally very complex. In fact, it is still NP-complete. Since the computational burden is still too high, the same heuristic from Section 3.6 will be used regardless of whether the frequencies are powers-of-two or not.
If only powers-of-two are allowed for the tour frequencies in our illustrative example, shown again in Figure 2.5, the appropriate frequencies are 2, 2, 1 and 2 respectively. This solution has a travel time of 36 hours, and a maximal cycle time of 60 hours (= min(240=4; 240=3; 120=1; 240=2)). The regular schedule with minimal makespan takes 44 hours (see Figure 2.6), so there is indeed much less idle time compared to the distribution patterns presented above.
The optimal cycle time of this distribution pattern with power-of-two fre-quencies is: Teoq = q
5036
0:1511=4 = 66:1 hours. This is not a feasible cycle time. The resulting cost rate at the best feasible cycle time of 60 hours is:
C = +5036T + T 0:15 11=4 = 20:00 + 30:00 + 24:75 = 74:75 euro per hour.
This powers-of-two solution is cheaper than the full-truckload distribution
pat-2.3 Modelling with more complex distribution patterns 35
Figure 2.5: Illustrative 4-customer example
tern because we can get closer to the optimal cycle time, and thus a more favourable cost trade-o can be obtained. However, it is still more expensive than the distribution pattern with frequencies (3; 3; 1; 2).
- t(h)
1 3 2 4 1 2 4
- t(h)
1 3 2 4 1 2 4
0h 22h 44h
0h 30h 60h
Figure 2.6: Minimal-makespan and actual schedule for the powers-of-two distribu-tion pattern
In one iteration of the cycle, the following happens. The vehicle rst makes the tour to customer 1 with a load of 120 units, immediately followed by the tour to customer 3 with a load of 60 units, the tour to customer 2 with a load of 90 units and the tour to customer 4 with a load of 60 units. Then, the vehicle has 8 hours of idle time, before it repeats the tours to customer 1, and the tours to customers 2 and 4.
Table 2.9 gives an overview of the main characteristics of this powers-of-two distribution pattern.
Optimal solution for the illustrative example
The optimal solution for our example has not been encountered so far. It is a distribution pattern consisting of three tours. Customer 1 is replenished
Table 2.9: Characteristics of the powers-of-two distribution pattern
Tmin 36h
Tsched 44h
Tmax 60h
Teoq 66:1h
Cycle time 60h
q1 120 units
q2 90 units
q3 60 units
q4 60 units
Transport cost rate 30:00 e/h Holding cost rate 24:75 e/h Cost rate 74:75 e/h Idle time 24=60 = 40%
Vehicle occupation 60%
Capacity utilization 71:43%
by the rst tour, which has frequency 3. Customers 2 and 4 are replenished together in a second tour, that also has frequency 3. Customer 3, nally, is replenished separately in a tour with frequency 1. This solution has a travel time of 3 6 + 3 7 + 8 = 47 hours, and a maximal cycle time of 72 hours (= min(360=4; 360=5; 120=1)). The minimal makespan for a regular schedule is 63 hours. This schedule is shown in Figure 2.7. In Section 3.6, we will show how this and all other schedules are constructed using the heuristic that is developed there.
The optimal cycle time of this distribution pattern is: Teoq =q
5047
0:152 = 88:5 hours. This is infeasible, so the best feasible cycle time is 72 hours, resulting in the following cost rate: C = +5047T +T 0:152 = 20:00+32:64+21:60 = 74:24 euro per hour.
- t(h)
1 1 1
2/4 3 2/4 2/4
- t(h)
1 1 1
2/4 3 2/4 2/4
0h 21h 42h 63h
0h 24h 48h 72h
Figure 2.7: Minimal-makespan and actual schedule for the optimal distribution pattern
During one iteration of this distribution pattern, the following events take place. At time t = 0, the vehicle leaves the depot fully loaded to make the tour to customers 2 and 4. After 2 hours, the vehicle arrives at customer 2 and delivers 72 units, and after 5 hours, the vehicle delivers the remaining 48 units
2.3 Modelling with more complex distribution patterns 37
to customer 4. Two hours later, the vehicle is back in the depot. It is then reloaded with 72 units that are delivered to customer 3 after 11 hours. Four hours later, the vehicle is back in the depot, where it is loaded with 96 units destined for customer 1. This delivery occurs at time t = 18. The vehicle then returns to the depot and waits for 3 hours before making the rst and third tour again, without repeating the second tour in between. Then, the rst and third tour are repeated once more.
Table 2.10 gives an overview of the main characteristics of the optimal distri-bution pattern.
Table 2.10: Characteristics of the optimal distribution pattern
Tmin 47h
Tsched 63h
Tmax 72h
Teoq 88:5h
Cycle time 72h
q1 96 units
q2 72 units
q3 72 units
q4 48 units
Transport cost rate 32:64 e/h Holding cost rate 21:60 e/h Cost rate 74:24 e/h Idle time 25=72 = 34:7%
Vehicle occupation 65:3%
Capacity utilization 85:7%