On the stochastic vehicle routing problem with time windows, correlated travel times, and time dependency
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Bomboi, Federica; Buchheim, Christoph; Pruente, Jonas Article — Published Version On the stochastic vehicle routing problem with time windows, correlated travel times, and time dependency 4OR Provided in Cooperation with: Springer Nature Suggested Citation: Bomboi, Federica; Buchheim, Christoph; Pruente, Jonas (2021) : On the stochastic vehicle routing problem with time windows, correlated travel times, and time dependency, 4OR, ISSN 1614-2411, Springer, Berlin, Heidelberg, Vol. 20, Iss. 2, pp. 217-239, https://doi.org/10.1007/s10288-021-00476-z This Version is available at: https://hdl.handle.net/10419/286778 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
4OR (2022) 20:217–239 https://doi.org/10.1007/s10288-021-00476-z RESEARCH PAPER On the stochastic vehicle routing problem with time windows, correlated travel times, and time dependency Federica Bomboi1·Christoph Buchheim2·Jonas Pruente2 Received: 11 May 2020 / Revised: 11 May 2020 / Accepted: 26 February 2021 / Published online: 12 March 2021 © The Author(s) 2021 Abstract Most state-of-the-art algorithms for the Vehicle Routing Problem, such as Branch-and- Price algorithms or meta heuristics, rely on a fast feasibility test for a given route. We devise the first approach to approximately check feasibility in the Stochastic Vehicle Routing Problem with time windows, where travel times are correlated and depend on the time of the day. Assuming jointly normally distributed travel times, we use a chance constraint approach to model feasibility, where two different application scenarios are considered, depending on whether missing a customer makes the rest of the route infeasible or not. The former case may arise, e.g., in drayage applications or in the pickup-and-delivery VRP. In addition, we present an adaptive sampling algorithm that is tailored for our setting and is much faster than standard sampling techniques. We use a case study for both scenarios, based on instances with realistic travel times, to illustrate that taking correlations and time dependencies into account significantly improves the quality of the solutions, i.e., the precision of the feasibility decision. In particular, the nonconsideration of correlations often leads to solutions containing infeasible routes. Keywords Stochastic VRP ·Time windows ·Correlated travel times ·Dynamic travel times ·Chance constraints Federica Bomboi gratefully acknowledges Sardinia Regional Government for the financial support of her PhD scholarship (P.O.R. Sardegna F.S.E. Operational Programme of the Autonomous Region of Sardinia, European Social Fund 2007-2013 - Axis IV Human Resources, Objective l.3, Line of Activity l.3.1.). BChristoph Buchheim [email protected] Federica Bomboi [email protected] Jonas Pruente [email protected] 1Department of Mathematics and Computer Science, University of Cagliari, Sardinia, Italy 2Fakultät für Mathematik, TU Dortmund, Dortmund, Germany 123
218 F. Bomboi et al. 1 Introduction Vehicle Routing Problems (VRP) were and still are subject of countless studies in the literature of operational research. These problems consist in finding a set of vehicle routes serving certain customer requests with the minimum total travel cost. The term VRP in general refers to the deterministic problem, in which all the data are known and not subject to uncertainty. However, in practice, due to a variety of influences such as traffic jams, weather, customer availability etc., the real situation is often unpredictable, so that a solution of the deterministic problem in most cases produces solutions that are far from optimal in reality. To deal with this problem, specific approaches for addressing these uncertainties are needed. The aim of this paper is to devise a new approach to check the feasibility of routes in the VRP with time windows (VRPTW) assuming stochastic travel times which can be used in branch-and-price algorithms as well as in many heuristic frameworks. Uncertainty is taken into account in several ways: firstly, the cost of a route depends on its expected travel times and is hence a random variable itself. Secondly, if a driver arrives too early at a customer’s location, the resulting waiting time has to be taken into account. Our model allows to calculate different costs for waiting and driving. Thirdly, and most importantly, a route may turn out to be infeasible under certain realizations of the travel times, due to the risk of missing some time window. Unlike many other approaches presented in the literature, we explicitly deal with dependent travel times in our approach, assuming a joint normal distribution. In practice, neighboring streets often have highly correlated travel times, so that taking into account the dependency of travel times is important in order to obtain feasible solutions. This is also confirmed by our computational study: considering such dependencies improves the precision of the solutions significantly. The importance of correlations between travel times has also been underlined in Park and Laurence (1999). Our approach can be used in any context where single routes are considered separately. This is the case, e.g., in the well-known set partitioning model, where the variables correspond to potential routes that are either enumerated in a first phase or are generated on the fly in a column generation approach. Also many heuristic approaches produce potential routes that have to be checked individually for feasibility and therefore our proposed feasibility check can be integrated easily. The solution method proposed in this paper is based on the chance constraint approach, where a route is accepted if the risk of a failure stays below a given threshold. We distinguish between two application scenarios. In the first scenario, the route is considered infeasible if for any of the customers on this route, the probability of missing her time window is too high. This means that the infeasibility for every customer is checked independently. Such a scenario occurs in applications that consist of only deliveries, e.g., post delivery, or only pickups, e.g., garbage disposal. We present a (single) chance constraint formulation for this scenario. In the second scenario, missing a customer’s time window may render the entire route infeasible. Therefore, we aggregate the risk of failure for all customers and reject a route if the cumulated risk of failure is too high. The latter approach applies to variants of the VRP where pickups and deliveries are performed by the same vehicles, so that missing a customer might imply that some following customers cannot be served any more, e.g., due to lack of 123
On the Stochastic VRP with time windows... 219 space in the vehicle. Another example for this is drayage, in which missing a customer can lead to a lack of empty containers at a later stop. In this situation, we are interested in the (joint) probability that at least one of the time windows is missed. For this setting, we present a joint chance constraint formulation. Moreover, for obtaining a more accurate stochastic model, we propose to consider truncated probability distributions in this case. In both cases, we use and extend an idea of Ehmke et al. (2015). It addresses the fact that, due to possible waiting times, the arrival times at subsequent customers are not normally distributed any more. It is proposed in Ehmke et al. (2015) to approximate these travel times, which can be defined as maxima between two normally distributed variables, again by normally distributed travel times, with the same expected values and variances. In this context, we also refer the reader to Clark (1961), Nadarajah and Kotz (2008) and Sinha et al. (2007). We extend this approximation to the correlated case by also considering and updating the covariances between travel times. Additionally, we consider a situation where travel times change over the day, meaning that the time needed to travel an arc depends on when the arc is traversed. It turns out that these extensions, though being computationally more expensive, lead to much more precise assessments of the feasibility of a route in realistic situations. In fact, our experiments on a set of instances with realistic travel times show that ignoring covariances leads to the creation of routes that are actually infeasible, when validated by sampling. The number of infeasible routes is decreased significantly when including covariance information in our algorithm. When travel times vary over the day, the difference between our approach taking this into account and an approach based on average travel times, is even larger, with many infeasible routes produced in the latter approach and, at the same time, objective values being better for our new algorithm. The main purpose of our experiments is to show that considering covariances is crucial for an accurate feasibility check when instances with realistic travel times are solved. Additionally, we show that our proposed algorithms are a reliable feasibility check. As long as we do not consider time-dependent travel times (as in Section 4.2), the feasibility check could as well be performed by sampling, which would even be faster than our approach. However, we ultimately aim at combining correlations and time dependency, in which case sampling will not be a practicable approach any more; see our discussion in Sect. 4.2.2. 1.1 Literature review Other publications using the chance constraint approach for dealing with time windows are Ehmke et al. (2015) with the assumption of independent travel times and Li et al. (2010) with independent travel and service times, others set restrictions on the probability that a vehicle’s capacity is exceeded Dinh et al. (2018) and on the length of the travel time Nahum and Hadas (2009). In Li et al. (2010), travel and service times are random variables following a normal distribution. In particular, together with the chance constraint approach, they propose to formulate the stochastic VRP with time windows (SVRPTW) as a two-stage stochastic programming model with recourse. 123
220 F. Bomboi et al. This consists in determining the route scheduling in the first stage, i.e., before the stochastic travel and service times are known, and in taking recourse actions to induce a penalty on the objective function in the second stage, i.e., once the two variables are realized. Unlike the chance constrained approach, stochastic programming models with recourse take into account the possibility of route failure and the resulting costs. In Dinh et al. (2018), the goals are to compute lower bounds on the minimum number of vehicles required to serve a subset of customers and to present a pricing for the branch-and-cut-and-price (BCP) approach for the chance constrained VRP problem. The authors devise an improved relaxed pricing for independent normal demands and an extension to distributionally robust chance constraints. They show an interesting comparison between the chance constraint VRP (CCVRP) and the recourse models in the case of independent normal distribution. The recourse they assume is returning to the depot whenever a vehicle’s capacity is exceeded. From the comparison, they conclude that “the CCVRP model tends to yield solutions that are high quality for the recourse model, whereas the reverse is not true. In addition, the CCVRP model is not dependent on a particular assumption of the recourse taken, and can be solved also when customer demands are not independent” Dinh et al. (2018). Nahum and Hadas (2009) address the Stochastic Time-Dependent VRP (STDVRP). Their algorithm is based on the savings algorithm of Clarke and Wright (1964), designed for solving the deterministic CVRP. For transforming the stochastic and time-dependent data to deterministic data, they use the average value (average time for each time period and probability intervals), the best value (minimal time for all time periods, regardless of the probability) and the worst value (maximal time for all time periods, regardless of the probability) filters. In this way a candidate list of different deterministic estimators can be built for calculating routes, that are then analyzed by simulation. The authors of Nahum and Hadas (2009) state that “Based on our findings for stochastic time-dependent vehicle-routing problems, the results of the STDVRP are similar to the results of the saving algorithm for CVRP”. Some reviews of SVRP literature can be found in Gendreau et al. (1996), in the detailed Oyola et al. (2018) and Oyola et al. (2017), and in Bastian and Rinnooy (1992) for the case of uncertain, independent and identically distributed customer demands. Articles dealing with uncertain travel times are Ehmke et al. (2015), Nahum and Hadas (2009), then Tas et al. (2013,2014a,b) and Van Woensel et al. (2003). Among these, in particular Nahum and Hadas (2009) and Tas et al. (2014a) study the time dependent case, in which travel times are stochastic and vary during the day. Vareias et al. (2019) deal with stochastic VRPs with uncertain travel times using chance constraints. As a subproblem, they solve the assignment of the time windows to optimality. Uncertain demands are considered in Dinh et al. (2018), Golden and Yee (1979), Guo and Mak (2004), and Novoa et al. (2006). An SVRP with simultaneous pickup and delivery under uncertain demands and travel times is dealt with by Hou and Zhou (2010). For works based on stochastic travel and service times, the reader is referred to Li et al. (2010), Miranda and Conceicao (2016), Zhang et al. (2013), and Gutierrez et al. (2016), where the latter solves the problem via a multi population memetic algorithm. For a VRP with stochastic service times only we refer to Errico et al. (2016). Several papers assume soft time windows, namely Guo and Mak (2004), Tas et al. (2013,2014a,b), and Zhang et al. (2013). Concerning the assumption of independence 123
On the Stochastic VRP with time windows... 221 and dependence of the uncertain variables, Ehmke et al. (2015) assume independent travel times. Independent travel and service times are assumed in Li et al. (2010) and Miranda and Conceicao (2016). Dinh et al. (2018) consider correlated demands, while Golden and Yee (1979) assume that demands follow a Poisson distribution and show extensions with the Binomial, Negative-Binomial and Gamma distributions for solving the case of independent demand; in case of correlation they assume multivariate normally distributed demands. Rajabi-Bahaabadi et al. (2019) consider correlated travel times. For early and late arrival times at the customers, penalties are incurred. They solve the problem with a max-min ant colony system hybridized with a tabu search algorithm. Their exploratory analysis on real travel time data shows that travel times are significantly correlated and an appropriate candidate for modeling their uncertainty is the shifted log-normal distribution. Bakach et al. (2018) model a vehicle routing problem with a makespan objective incorporating both stochastic and correlated travel times. With respect to solution methods, the majority of publications opt for heuristics and metaheuristics. Guo and Mak (2004) use a genetic based algorithm, Van Woensel et al. (2003) an Ant Colony Optimization heuristic, Dinh et al. (2018) adapt and extend the Clarke and Wright’s heuristic Clarke and Wright (1964) to obtain primal solutions to the chance-constrained VRP and investigate a Dantzig-Wolfe formulation, Golden and Yee (1979) as well as Lambert et al. (1993) also use a heuristic procedure based on Clarke and Wright (1964). For the computational experiments, Ehmke et al. (2015) embed the feasibility check and the estimation of arrival and start-service times into a tabu search algorithm. Other papers which use the tabu search are Li et al. (2010), Tas et al. (2013), and Zhang et al. (2013). Recourse methods are used in Errico et al. (2016), Li et al. (2010), Novoa et al. (2006), and Zhang et al. (2013). Goel et al. (2019) propose a modified ant colony system to solve a vehicle routing problem with time windows having stochastic customer demands and stochastic service times. Particular attention has been paid to the paper of Ehmke et al. (2015), whose study can be considered at the basis of the presented paper. Summarizing, they deal with a SVRPTW assuming that the time to travel from one customer to another is normally distributed. Their approach is based on the (single) chance constraint method, which consist in accepting a route if the probability of arriving at each customer on time is greater or equal to a fixed threshold. Another assumption they make is that if a vehicle arrives at a customer before the beginning of her time window, then it must wait until the time window starts. One of the main assumptions of their study is the independence of the travel cost variables. Their interpretation of the correlation between arc travel times is that it generally decreases over time; “that is, although the travel time of two arcs may be correlated at any given time, the correlation of the travel time of one arc at the current time with the travel time of another arc at some future time (i.e. after intervening travel and service time) will be less pronounced” Ehmke et al. (2015). In their study, the time-dependency of travel times is not considered. For their computational experiments, they embedded the feasibility check used in route construction as well as the estimation of arrival and start-service times into a tabu search algorithm. 123
222 F. Bomboi et al. 1.2 Our contribution We present a new approach for checking the feasibility of routes of a wide class of variants of the VRPTW subject to stochastic travel times. The most important contributions of this paper are – an investigation of the importance of considering correlations between travel times by solving instances with realistic travel times; – an improved sampling algorithm for situations in which we only require a decision whether a given threshold is exceeded or not; – an approach for checking the feasibility of routes for the single chance constrained routing problem with correlations, not based on sampling; – an investigation of the importance of considering travel times varying over the day by solving instances created with data based on realistic travel times; – an approach for checking the feasibility of routes for the single chance constrained routing problem with time dependencies, not based on sampling; – an approach for checking the feasibility of routes for the joint chance constrained routing problem with and without correlations, not based on sampling; – an estimation of the waiting times of the vehicles at the customer locations that can be used in penalty based approaches. The main contribution of the paper is the description of an algorithm for checking the feasibility of routes considering correlations and time dependencies at the same time for single chance constrained routing problems. We show that in this setting sampling is not an option and therefore to the best of our knowledge our approach is the only one that can be used. 1.3 Outline of the paper Section 2presents some notation for the problem we consider. In Sect. 3, we describe our idea of adaptive sampling. Section 4deals with the single chance constrained version of the problem. In Sect. 5, an approximation of the joint chance constrained problem is discussed. The paper terminates with a summary and a discussion of possible extensions in Sect. 6. In Appendix A, some stochastic formulas used in the proposed algorithms are listed. 2 Preliminaries and notation We aim at solving Vehicle Routing Problems with Time Windows subject to uncertain travel times. Extending the terminology of Toth and Vigo (2002) for the deterministic version of the problem, we will refer to this class of stochastic problems as SVRPTW. Every customer is visited exactly once by exactly one vehicle and all vehicle routes start and end at a single depot. More formally, we assume that a finite set Cof nodes is given, where 0 ∈C corresponds to the depot and the remaining nodes in C\{0}correspond to customers to be served. Moreover, we assume that each pair of nodes i,j∈Cis connected by a 123
On the Stochastic VRP with time windows... 223 Table 1 Basic notation defining our instances 0 Depot node CSet of customer nodes including depot ESet of all arcs ErSet of arcs contained in a route r aeEarliest start time of service at end node of arc e beLatest start time of service at end node of arc e XeRandom variable describing the travel time of arc e μeExpected travel time of arc e σe,fCovariance between travel times of eand f σeStandard deviation of travel time of arc e Threshold for feasibility of a route directed arc (i,j)∈E, we thus deal with a complete graph G=(C,E)throughout the paper. A route r in Gis given by an ordered list of distinct customers cr1,...,crk, the set of its arcs is denoted by Er:= {(0,cr1), (cr1,cr2),...,(crk−1,crk), (crk,0)}. In our problem, each customer is assigned a deterministic time window. It will be convenient to index the time windows by arcs, thus for an arc e=(i,j)we will denote by ae(be)theearliest (latest) start time of service at customer j, so that the time window is defined by [ae,be]. All travel times are uncertain and thus modeled as random variables. More precisely, we make the assumption that the vector X∈RE, which defines the travel time Xe for each arc e, is jointly normally distributed with means μ∈RE +and covariance matrix ∈RE×E, i.e., X∼N(μ, ); we will denote the entries of by σe,f for e,f∈E. For simplicity, we assume that is positive definite. In particular, the travel time of each single arc eis again normally distributed with Xe∼N(μe,σ2 e), where we set σe=√σe,e. This also implies that the travel time of a route, given as the sum of travel times of the contained arcs, is normally distributed – however, this is only true as long as no time windows are considered. In Sect. 4.2 we additionally assume that travel times are day time dependent, e.g., at 8 a.m. we assume to have more traffic than at midnight. We model this by replacing the expected value and the variance of an arc by functions that depend on the day time. Finally, we will use ∈(0,1)throughout the paper to denote the threshold for the risk of a failure, i.e., we will accept a route if the probability that it is infeasible, with respect to the uncertain travel times, is at most . For the reader’s convenience, we summarize this notation in Table 1. In this paper, we restrict ourselves to discussing the following two questions with respect to a fixed route r: (a) is route rfeasible with a high enough probability? (b) if so, what is the expected cost of route r? This is motivated by the fact that many exact as well as heuristic approaches for solving vehicle routing problems can be reduced to the above tasks, in particular when the decision of (a) is a difficult problem in itself. An important example for this class of 123
224 F. Bomboi et al. approaches is the set partitioning approach to the VRP, which is often combined with column generation. Assuming that the full set of feasible routes Ris known, together with the corresponding cost crfor each r∈R, we can model the final optimization problem as follows: min r∈R crxr s.t. r∈R i∈r xr=1∀i∈C\{0} xr∈{0,1}∀r∈R. Here we choose a cheapest subset of all routes such that each customer is visited exactly once by these routes. Throughout the paper, we use this formulation in our experiments. Since all constraints that do not depend on the travel time, such as capacity constraints, can be checked easily in a deterministic preprocessing, we do not consider these constraints in the following. In particular, vehicles with infinite capacity are assumed. In Sects. 4and 5, we will concentrate on the above questions (a) and (b) in two different application scenarios. In the first one, a route becomes infeasible if we miss the time window of any of the customers with probability larger than 1 −;see Sect. 4. In the second scenario, a route is infeasible if the probability of missing at least one customer exceeds 1 −; see Sect. 5. Even if the difference between the two scenarios seems very subtle, the second approach is much more challenging from a mathematical (and complexity-theoretic) point of view, as it requires to deal with joint chance constraints. In fact, we can only deal with the latter case in an approximate way. In both cases, the expected costs have to take possible waiting times into account. 3 Adaptive sampling A standard approach for testing feasibility of a given route rwould be to sample the distribution of the involved arc lengths and to check whether the given chance constraints hold with high enough probability. Clearly, the crucial question here is how many samples to compute. If the number is chosen too high, it takes too much time to compute them. If it is chosen too small, the result will be unreliable. However, in our context, we are not interested in the exact probabilities that a route is feasible or not. Instead, we only have to decide whether this probability is greater than the threshold 1 −. This can be exploited in order to adaptively choose the number of samples, using the following classical result due to Hoeffding (1963). Theorem 1 (Hoeffding (1963)) After sampling independent (not necessarily identically distributed) Bernoulli random variables at most 1 2γ2ln(2 δ)times, the deviation of their mean from the expected value differs by at most γwith probability at least 1−δ, for every γ>0and δ∈(0,1). Here, a Bernoulli distribution is a probability distribution of an experiment with binary outcome. E.g., to be sure with probability 99% that the mean does not deviate more than 1% from the real expected value, at most 26492 samples are needed. Algorithm 1 123
On the Stochastic VRP with time windows... 231 Algorithm 3 Feasibility Check with Single Chance Constraint, taking time dependency into account (but no correlations) Input: route r=(0,r1,...,rt,0) Output: decision if ris feasible with high probability; expected driving time D; expected waiting time W 1: k=0 2: expk=0, vark=0 3: W=0 4: for e∈Er\(rt,0)do 5: assume S∼N(expk,vark) 6: expk+= E[μe(S)] 7: vark+= E[σ2 e(S)] 8: assume ˜ Xk∼N(expk,vark) 9: if P(˜ Xk>be)>then 10: discard route r 11: end if 12: expk+1=E[max{˜ Xk,ae}] Formula (A.1) 13: vark+1=Var[max{˜ Xk,ae}] Formula (A.2) 14: W+= E[max{ae−˜ Xk,0}] Formula (A.1) 15: k+= 1 16: end for 17: D=expk+μ(rt,0) 18: accept route rand return Dand W Table 3 Comparison for Single Chance Constraint with time dependencies (without covariances) Algorithm 3 Algorithm 2/E Adaptive Sampling Standard Sampling time # inf. obj. time # inf. obj. time # inf. obj. time # inf. obj. 0.01 256.6 0 1.00 34.0 1 1.01 56.1 0 1.00 541.7 0 1.00 0.05 308.1 0 1.00 41.9 2 1.03 68.5 0 1.00 654.6 0 1.00 0.1 338.9 0 1.00 45.6 3 1.03 75.5 0 1.00 695.2 0 1.00 higher. On the other hand, it uses only 12 to 14 percent of the running time compared to the new algorithm. The adaptive sampling algorithm outperforms the normal sampling by far in running time and is nearly as fast as the algorithm that ignores the time dependencies. Both sampling approaches did not produce infeasible solutions. 4.3 Combining correlations and time dependency In the preceding sections, we have explained how to take correlations and time dependency into account separately. It is also possible to combine both in one algorithm. For this, every time we need to know a covariance σe,f(te,tf)between two edges eand f, we need to compute an expected covariance of a two-dimensional piecewise constant function over two jointly normally distributed random variables teand tf(the starting times of the two edges). As before, the starting time of an edge is just the random variable describing the length of the route up to that time. Therefore, we also need the 123
232 F. Bomboi et al. covariances between subroutes. However, we only need to consider subroutes that start from the depot, so that the number of covariances to be computed remains quadratic in the route length. These covariances can be computed analogously to the covariance between the entire route and a single edge. All necessary data can be computed in the moment when it is required. When using piecewise constant distributions, as above, we need the joint distribution function of two normally distributed random variables to calculate the expected covariance. Computing this is numerically challenging but possible. It is also possible to sample the expected covariance with the given expected values and covariance matrix for the two starting points. This would lead to a hybrid approach using a combination of sampling and a deterministic algorithm. We would like to emphasize that any sampling approach is impracticable when considering correlations and time dependencies. In both approaches discussed so far, the same samples could be used for all routes, and the covariance matrix was fixed. In particular, the Cholesky decomposition, needed to sample travel times in the dependent case, had to be computed only once. When considering the time-dependent case, we need the knowledge about the order of customers in the route already during the process of sampling. Therefore, we need to consider every route separately and cannot create one sample used for all routes. Even worse, since the expected covariance σe,f(te,tf)depends on the starting times teand tfnow, the Cholesky decomposition cannot be computed in the preprocessing phase any more, since the matrix now depends on teand tf. This computation is further complicated when taking waiting into account. As a consequence, sampling is not a practical approach here, so that we cannot present a meaningful comparison with our approach. Moreover, without a samplingbased method, we cannot evaluate feasibility and quality of the solutions computed by our approach as in the last sections. For this reason, we do not present an experimental evaluation for the case of time dependent and correlated travel times. 5 SVRPTW with backhauls and linehauls – joint chance constraints So far, we have assumed that feasibility of a route is determined by a high enough probability to reach each customer within its time window. An implicit assumption in our model was that the failure of serving a customer does not influence the feasibility of the rest of the route directly. We now consider the case where failing to serve a customer may directly imply the failure of serving one of the remaining customers on the route, motivated by problems where customer demands can be either deliveries or a pickups. We will refer to this problem as a Stochastic VRPTW with Backhauls (pickup) and Linehauls (deliveries), SVRPTW-BL. Note however that our problem differs from the classical VRP with Backhauls Toth and Vigo (2002), because no precedence constraints on the deliveries are assumed, and it differs from the VRP with Pickup and Delivery Toth and Vigo (2002), in that the latter assumes a delivery and a pickup for each customer. Our investigation of this VRP variant is motivated by problems in intermodal freight transport, for example freight transportation in intermodal containers using trucks, which involves the distribution of loaded and empty containers between an intermodal 123
On the Stochastic VRP with time windows... 233 facility or depot and fixed export and import customers. In these applications, a large number of different customer request types and container constraints may arise Bomboi and Pruente (2018). In particular, if a customer in a route is not served for some reason, the feasibility of the rest of the route is not guaranteed anymore, e.g., a failed pickup of an empty container leads to the failure in loading the freight at the next customer or a failed delivery leads to a lack of space in the truck for a subsequent pickup. We thus have to guarantee a service level for the whole route and not for each single customer, that is, we need to consider joint chance constraints in the place of single chance constraints. In other words, we have to deal with the risk of infeasibility of the whole route rather that considering the risk of failing to serve any of the customers in the route independently. For simplicity, we assume here that failing to serve any customer within its time window makes the entire route infeasible. In the remainder of this section, an algorithm for this case, using joint chance constraints in an approximate way, is provided and computational results are presented. In principle, by a combination of our proposed algorithms for the single and the joint chance constraint case, our approach could be extended to the case where not all failures render the rest of the route infeasible. Besides having to deal with joint chance constraints now, another complication is that, after passing a customer, distributions have to be truncated, as we are only interested in travel times under the assumption that the customers visited so far have been served in time. 5.1 Algorithm We now present an algorithm to address the SVRPTW-BL problem described above; see Algorithm 4. It takes correlations into account, but does not deal with time dependency. With respect to Algorithm 2, two major changes arise. Firstly, instead of checking a chance constraint for every customer, we have to check one chance constraint for the whole route. Unfortunately, dealing with joint chance constraints is hard, and there is no compact formula modeling the joint risk, therefore it is often approximated in the literature by calculating the risk of every single event (here a failure of one customer), summing it up (using total in Algorithm 4), and comparing it to the maximum allowed risk for the joint chance constraint . We follow this approach; the corresponding changes in Algorithm 4concern Lines 19-22. When Algorithm 4ends with a feasible route, i.e. when total ≤,thevaluetotal represents the probability of the route failure. This information could also be used in a bicriteria-style approach: instead of discarding all routes with total >, one could sort the routes by their risk and solve the optimization problem for different risk levels without having to recompute the feasible routes. E.g., in a column generation approach, increasing would then just lead to the addition of more columns. The second change concerns the truncation discussed above: for calculating the expected value and variance for later arrival times in the route, only the scenarios being feasible so far should be considered. E.g., if a driver misses the time window of the first customer and thus cannot serve it, he cannot continue to the second customer, and therefore the arrival time in this scenario does not influence the arrival time at the second customer, and so on. To model this, we use a one sided truncated normal 123
234 F. Bomboi et al. distribution of the upper tail (using ˆμand ˆσto denote expectations and covariances after truncation). After checking the chance constraint, the truncation for the expected value and for the variance is performed in Line 23 and 24. As we consider joint normal distributions, the truncation of one variable also affects the covariances between two other variables, so the whole submatrix of corresponding to the current route has to be updated; see Lines 25–28. Note that the truncated distributions are again replaced by normal distributions. The formulas used for computing the truncated distributions can be found in Appendix A. Algorithm 4 Feasibility Check for Joint Chance Constraint for a Route r Input: route r=(0,r1,...,rt,0) Output: decision if ris feasible with high probability; expected driving time D; expected waiting time W 1: k=0 2: expk=0, vark=0 3: for e∈Er\(rt,0)do 4: covk,e=0 5: end for 6: for e,f∈Erwith e= fdo 7: ˆμe=μe 8: ˆσe,f=σe,f 9: end for 10: W=0, total =0 11: for e∈Erdo 12: expk+= ˆμe 13: vark+= ˆσ2 e 14: vark+= 2covk,e 15: for f∈Erafter edo 16: covk,f+= ˆσe,f 17: end for 18: assume ˜ Xk∼N(expk,vark) 19: total += P(˜ Xk>be) 20: if total >then 21: discard route r 22: end if 23: expk=E[˜ Xk|˜ Xk<be]Formula (A.5) 24: vark=Var[˜ Xk|˜ Xk<be]Formula (A.7) 25: for f,g∈Erafter ewith f= gdo 26: ˆμf=E[Xf|˜ Xk<be]using covk,fFormula (A.5) 27: ˆσf,g=Cov[Xf,Xg|˜ Xk<be]using covk,fand covk,gFormula (A.6) 28: end for 29: assume ˜ Xk∼N(expk,vark) 30: expk+1=E[max{˜ Xk,ae}] Formula (A.1) 31: vark+1=Var[max{˜ Xk,ae}] Formula (A.2) 32: for f∈Erafter edo 33: covk+1,f=Cov[max{˜ Xk,ae},ˆ Xf]Formula (A.3) 34: end for 35: W+= E[max{ae−˜ Xk,0}] Formula (A.1) 36: k+= 1 37: end for 38: D=expk+μ(rt,0) 39: accept route rand return Dand W 123
On the Stochastic VRP with time windows... 235 Table 4 Comparison for Joint Chance Constraint with correlations Algorithm 4 Algorithm 5 Algorithm 6 Adaptive Sampling Standard Sampling time # inf. obj. time # inf. obj. time # inf. obj. time # inf. obj. time # inf. obj. 0.01 303.5 0 1.00 55.1 2 1.00 45.5 0 1.00 23.1 0 1.00 179.7 0 1.00 0.05 374.0 1 1.00 65.4 2 1.00 53.3 1 1.00 31.2 1 1.00 248.0 1 1.00 0.1 419.8 0 1.00 71.0 1 1.00 60.9 0 1.00 36.2 1 1.00 325.1 1 1.00 5.2 Experimental results In our experimental evaluation, we create instances in exactly the same way as described in Sect. 4.1.2, except that different sets of time windows may now be discarded due to infeasibility. Table 4shows the results of a comparison between Algorithm 4considering correlations and truncations; the variant of it not considering correlations (Algorithm 5); another variant not performing truncations but considering correlations (Algorithm 6); our adaptive sampling algorithm with smax =10,000 and δ=0.01; and normal sampling with 10,000 samples. The algorithm considering correlations and truncations returned in only one of thirty settings an infeasible route. Ignoring the truncations did not lead to more infeasible settings, but decreased the running times by around 85 percent. Ignoring the correlations, on the other hand, led to five times more infeasible settings. In fact, 5 out of 30 settings resulted in an infeasible route in this approach. At the same time, it did not even run faster than the algorithm ignoring truncations because it allows more feasible routes, which outweighs the additional running time per route. Again adaptive sampling is much faster than the normal sampling by keeping the same accuracy. Both sampling methods made two mistakes, which is double as much as Algorithm 4. As a conclusion, the recommended algorithm for solving instances of SVRPTW-BL considers correlations but ignores truncations. 6 Conclusion We devised several algorithms for checking the feasibility of a given route in the Stochastic Vehicle Routing Problem with time windows and with correlated and timedependent travel times. They are either based on closed formulas or sampling. We consider either single or joint chance constraints depending on whether missing a customer’s time window makes the entire route infeasible or not. These algorithms can be embedded into most algorithms for solving the Vehicle Routing Problem with hard time windows and waiting times as a feasibility check. Due to the fact that the algorithms also compute expected waiting times, they can be easily adapted to variants of the problem with soft time windows and penalties. The experimental results obtained in our case study show that the algorithms assess the feasibility of a given route with a reasonable precision, in particular when correlations are taken into account. However, for a large number of samples, the latter approach is time consuming. 123
236 F. Bomboi et al. Considering the complementary strengths of the deterministic and the sampling approach, one could also investigate combinations of both approaches. E.g., one could check for a given route how likely it is to become infeasible, and if the result is very close to the value of acceptance, do a second check performing sampling with a high number of samples – possibly only for routes that were accepted, but very close to be not accepted, because adding an infeasible route is in general more problematic than missing a feasible one. Another hybrid approach would be to use sampling with a high number of samples just as a callback inside the optimization process: first compute an optimal solution using our approach, then check the feasibility of all routes used in this solution by sampling, and if some route turns out to be infeasible, remove it and re-optimize. The advantage of this approach is that the sampling has to be performed for a very small set of routes and can thus be performed with a large number of samples in reasonable time. Funding Open Access funding enabled and organized by Projekt DEAL. Declarations Conflict of interest The authors declare that they have no conflict of interest. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. A Computation of updated moments For the convenience of the reader, we explain in the following how to compute the expected values, variances and covariances of the random variables appearing in Algorithms 2 and 4. For this, we use the assumptions and notation of Sect. 2, in particular, we assume X∼N(μ, ) and thus Xi∼N(μi,σ2 i). For indices i1,...,ik,we consider the joint density function of Xi1,...,Xik, given by fXi1,...,Xik(s1,...,sk):= 1 √(2π)kdet (¯ )e−1 2(s−¯μ)¯ −1(s−¯μ) , where ¯μdenotes the vector with entries μi1,...,μ ikand ¯ the corresponding submatrix of . We again assume here that and hence ¯ is positive definite. 123
On the Stochastic VRP with time windows... 237 Rectified Gaussian distributions We first consider the random variable max{c,Xi}for a constant c. For the expected value, we obtain E(max{c,Xi})=∞ −∞ max{c,s}fXi(s)ds =c −∞ cfXi(s)ds +∞ c sfXi(s)ds =cP(Xi≤c)+μiP(Xi≥c)+σii fXi(c) (A.1) To compute the variance Var(max{c,Xi})=E(max{c,Xi}2)−E(max{c,Xi})2(A.2) we can use (A.1) and E(max{c,Xi}2)=∞ −∞ max{c,s}2fXi(s)ds =c −∞ c2fXi(s)ds +∞ c s2fXi(s)ds =c2P(Xi≤c)+(μ2 i+σii)P(Xi≥c)+σii(c+μi)fXi(c) Finally, we have E(Xj·max{c,Xi})=∞ −∞ ∞ −∞ tmax{c,s}fXi,Xj(s,t)ds dt =∞ −∞ c −∞ tcfXi,Xj(s,t)ds dt +∞ −∞ ∞ c tsfXi,Xj(s,t)ds dt =cμjP(Xi≤c)+(μiμj+σij)P(Xi≥c)+μjσii fXi(c) and thus obtain Cov(Xi,max{c,Xj})=E(Xi·max{c,Xj})−E(Xi)E(max{c,Xj}) =σijP(Xj≥c)(A.3) Truncated Gaussian distributions We next develop formulas for the moments of the random vector Xtruncated by a condition Xi<b, where bis again a constant. For the expected values, we have E(Xj|Xi≤b)=1 P(Xi≤b)+∞ −∞ b −∞ tfXi,Xj(s,t)ds dt =μj−σij fXi(b) P(Xi≤b) (A.4) 123
238 F. Bomboi et al. and, in particular, E(Xi|Xi≤b)=μi−σii fXi(b) P(Xi≤b)(A.5) For the covariances, we have Cov(Xj,Xk|Xi≤b)=E(XjXk|Xi≤b)−E(Xj|Xi≤b)E(Xk|Xi≤b) (A.6) which can be computed using (A.4) and E(XjXk|Xi≤b)=1 P(Xi≤b)+∞ −∞ +∞ −∞ b −∞ tufXi,Xj,Xk,Xi(s,t,u)du ds dt =μjμk+σjk −σijσik σii (b−μi)+σikμj+σijμkfXi(b) P(Xi≤b) As a special case, we obtain a formula for Var(Xj|Xi≤b)=Cov(Xj,Xj|Xi≤b)(A.7) which also applies to the case i=j. References Bakach I, Campbell AM, Ehmke JF, Urban TL (2018) Modeling Correlation in Vehicle Routing Problems with Makespan Objectives and Stochastic Travel Times, Working Paper 7/2018, Faculty of Economics and Management, University of Magdeburg Bastian C, Rinnooy Kan AHG (1992) The stochastic vehicle routing problem revisited. Eur J Op Res 56(3):407–412 Bebu I, Mathew T (2009) Confidence intervals for limited moments and truncated moments in normal and lognormal models. Stat Probab Lett 79(3):375–380 Bomboi F, Pruente J (2018) A new drayage problem with different customer services and container requirements, Technical Report Clark CE (1961) The greatest of a finite set of random variables. Op Res 9(2):145–162 Clarke G, Wright JW (1964) Scheduling of vehicles from a central depot to a number of delivery points. Op Res 12(4):568–581 Dinh T, Fukasawa R, Luedtke J (2018) Exact algorithms for the chance-constrained vehicle routing problem. Math Progr 172(1):105–138 Ehmke JF, Campbell AM, Urban TL (2015) Ensuring service levels in routing problems with time windows and stochastic travel times. Eur J Op Res 240(2):539–550 Errico F, Desaulniers G, Gendreau M, Rei W, Rousseau LM (2016) A priori optimization with recourse for the vehicle routing problem with hard time windows and stochastic service times. Eur J Op Res 249(1):55–66 Gendreau M, Laporte G, Séguin R (1996) Stochastic vehicle routing. Eur J Op Res 88(1):3–12 Goel R, Maini R, Bansal S (2019) Vehicle routing problem with time windows having stochastic customers demands and stochastic service times: Modelling and solution. J Comput Sci 34:1–10 Golden BL, Yee JR (1979) A framework for probabilistic vehicle routing. A I I E Trans 11(2):109–112 Google Maps. www.maps.google.com 123
On the Stochastic VRP with time windows... 239 Guo ZG, Mak KL (2004) A heuristic algorithm for the stochastic vehicle routing problems with soft time windows, Proceedings of the 2004 Congress on Evolutionary Computation (IEEE Cat. No.04TH8753), 2:1449-1456 Gutierrez A, Dieulle L, Labadie N, Velasco N (2016) A multi population memetic algorithm for the vehicle routing problem with time windows and stochastic travel and service times. IFAC-PapersOnLine 49(12):1204–1209 Hoeffding W (1963) Probability Inequalities for Sums of Bounded Random Variables. J Am Stat Assoc 58(301):13–30 Hou L, Zhou H (2010) Stochastic Vehicle Routing Problem with Uncertain Demand and Travel Time and Simultaneous Pickups and Deliveries, 2010 Third International Joint Conference on Computational Science and Optimization(CSO). 01, 32-35 Lambert V, Laporte G, Louveaux F (1993) Designing collection routes through bank branches. Comput Op Res 20(7):783–791 Li X, Tian P, Leung SCH (2010) Vehicle routing problems with time windows and stochastic travel and service times: Models and algorithm. Int J Prod Econ 125(1):137–145 Miranda DM, Conceicao SV (2016) The vehicle routing problem with hard time windows and stochastic travel and service time. Expert Syst Appl 64:104–116 Nadarajah S, Kotz S (2008) Exact distribution of the Max/Min of two Gaussian random variables. IEEE Trans Very Large Scale Integr VLSI Syst 16(2):210–212 Nahum OE, Hadas Y (2009) Developing a model for the stochastic time-dependent vehicle-routing problem. Int Conf Comput Ind Eng 2009:118–123 Novoa C, Berger R, Linderoth J, Storer R (2006) A set-partitioning-based model for the stochastic vehicle routing problem, technical report 06T-008 Oyola J, Arntzen H, Woodruff DL (2017) The stochastic vehicle routing problem, a literature review part II Solution methods. EURO J Transp Logist 6(4):349–388 Oyola J, Arntzen H, Woodruff DL (2018) The stochastic vehicle routing problem, a literature review, part I: models. EURO J Transp Logist 7(3):193–221 Park D, Laurence RR (1999) Forecasting Freeway Link Travel Times with a Multilayer Feedforward Neural Network. Computer-Aided Civil and Infrastructure Engineering 14(5):357–367 Rajabi-Bahaabadi M, Shariat-Mohaymany A, Babaei M, Vigo D (2019) Reliable vehicle routing problem in stochastic networks with correlated travel times. Oper Res Int J. https://doi.org/10.1007/s12351- 019-00452-w Sinha D, Zhou H, Shenoy NV (2007) Advances in computation of the maximum of a set of gaussian random variables. IEEE Trans Comput Aided Des Integr Circuits Syst 26(8):1522–1533 Tas D, Dellaert N, Van Woensel T, de Kok T (2013) Vehicle routing problem with stochastic travel times including soft time windows and service costs. Comput Oper Res 40(1):214–224 Tas D, Dellaert N, Van Woensel T, de Kok T (2014a) The time-dependent vehicle routing problem with soft time windows and stochastic travel times. Transp Res Part C Emerg Technol 48:66–83 Tas D, Gendreau M, Dellaert N, Van Woensel T, de Kok AG (2014b) Vehicle routing with soft time windows and stochastic travel times: a column generation and branch-and-price solution approach. Eur J Oper Res 236(3):789–799 Toth P, Vigo D (2002) The Vehicle Routing Problem, Siam Vareias Anastasios D, Repoussis Panagiotis P, Tarantilis Christos D (2019) Assessing customer service reliability in route planning with self-imposed time windows and stochastic travel times. Transp Sci 53(1):256–281 Van Woensel T, Kerbache L, Peremans H, Vandaele N (2003) A Vehicle Routing Problem with Stochastic travel times. In: Fourth Aegean international conference on analysis of manufacturing systems location, Samos Zhang J, Lam WHK, Chen BY (2013) A stochastic vehicle routing problem with travel time uncertainty: trade-off between cost and customer service. Netw Spatial Econ 13(4):471–496 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123