Research Article  Open Access
Carrie Ka Yuk Lin, "Solving a Location, Allocation, and Capacity Planning Problem with Dynamic Demand and Response Time Service Level", Mathematical Problems in Engineering, vol. 2014, Article ID 492340, 25 pages, 2014. https://doi.org/10.1155/2014/492340
Solving a Location, Allocation, and Capacity Planning Problem with Dynamic Demand and Response Time Service Level
Abstract
Logistic systems with uncertain demand, travel time, and onsite processing time are studied here where sequential trip travel is allowed. The relationship between three levels of decisions: facility location, demand allocation, and resource capacity (number of service units), satisfying the response time requirement, is analysed. The problem is formulated as a stochastic mixed integer program. A simulationbased hybrid heuristic is developed to solve the dynamic problem under different response time service level. An initial solution is obtained from solving static locationallocation models, followed by iterative improvement of the three levels of decisions by ejection, reinsertion procedure with memory of feasible and infeasible service regions. Results indicate that a higher response time service level could be achieved by allocating a given resource under an appropriate decentralized policy. Given a response time requirement, the general trend is that the minimum total capacity initially decreases with more facilities. During this stage, variability in travel time has more impact on capacity than variability in demand arrivals. Thereafter, the total capacity remains stable and then gradually increases. When service level requirement is high, the dynamic dispatch based on firstcomefirstserve rule requires smaller capacity than the one by nearestneighbour rule.
1. Introduction
For many service systems in the public and private sector, the demand sites are often divided into one or more service regions (or zones) to reduce the problem size for service delivery planning. Each service region is typically served by a capacitated facility. A facility could be a physical production/service centre or a collection/redistribution point. In this work, the capacity refers to the number of service units available for dispatch to serve random requests occurring in a region represented in a network of nodes. Examples of such service systems include express delivery, mobile repair service, and emergency systems. This paper examines the combination of a facility locationallocation problem and a queuing problem on a network with response time service level requirement. The planning model includes three types of decisions: number of facilities and locations, allocation of demand sites to each facility, and capacity required at each facility. Response time is measured by the time elapsed between a service request and the arrival of the assigned server. The service level requirement is imposed on the average response time and/or percentage of served requests with response time within a predetermined limit.
The facility locationallocation problem (the first two levels of decisions) involves finding a set of locations of facilities and assigning demand sites to be served by one of these facilities. It has applications in supply chain, logistics, health service planning, and ecommerce for planning of web services provider’s facilities and customer allocation [1]. A review of facility location models is given by Arabani and Farahani [2], Farahani and Hekmatfar [3], and a detailed classification in Azarmand and Jamie [4].
Small examples can show that the relationship between number of facilities and the minimum total capacity satisfying the response time requirement is not always a monotonic decreasing function, like that between the number of facilities and maximum travel distance. This is illustrated in two cases of a small static problem with 4 nodes shown in Figures 1 and 2. Assume the travel time between every pair of nodes is equal (15 min.) and each node generates two calls. Suppose the average response time per call should not exceed the travel time between any two nodes. Figure 1 shows the case when all calls arrive simultaneously at time 0 and the route for each service unit with 1 or 2 facilities set up. The scenario of setting up 4 facilities for 4 nodes is trivial. (The three levels of decisions and detailed calculations are shown in Appendix A.) The policy of centralization (1 facility) and complete decentralization (4 facilities) both require larger total capacity than an intermediate policy (2 facilities) that benefits from sharing of capacity (service units) between nodes belonging to the same facility and with appropriate scheduling. Figure 2 shows the same problem but with calls arriving more evenly during an hour at time 0 and the 30th minute in an hour for each node. Again, an intermediate policy (2 facilities) results in the minimum total capacity. If the supplier is capacityconcerned, the intermediate policy is the best. On comparing the total travelling time between the two cases (Tables 6 and 7), Case 1, the more urgent case when all requests are ready at the beginning at each node, results in smaller or the same average travel time. However, the total capacity required is larger than or the same as Case 2 when requests are evenly spread out over time. In both cases, the optimal solution occurs when an additional facility would require a minimum total capacity greater than current capacity in satisfying the response time requirements. For larger problems with more nodes, it is uncertain at what point the total capacity will (first) reach the minimum level. Similar relationship of the threelevel decisions with uncertain parameters (arrival time, location, travel time, and onsite processing time) will be explored.
Assumptions on arrival pattern, service time distribution, and travel distance (or time) estimation are crucial to problem formulation and solution. Locationallocation problem with queuing consideration often assumes Poisson distributed demand and exponential service time as in Aboolian et al. [5] and Syam [6]. When total cost is an objective, distance between demand site and facility location is often used to estimate the travelling cost. For rare events like emergency requests, direct travel between facility and demand node is usually assumed to enable quick response. However in operations where servers are mobile units travelling from one node to another to perform service on site, the direct distance between demand site and facility would likely overestimate the travelling distance (or time) per trip. Alternative distance measure suggested by Turkensteen and Klose [7] includes a mixed measure basically combining two estimates: the “headway length” estimates the expected distance from demand locations to a central point (e.g., facility) in the area; the “detour length” estimates distance between demand points in the same delivery route. In this work, the response distance limit is used in assigning nodes to facilities (first two levels of decisions) initially. Instead of assuming deterministic distance and fixed decisions, a simulationbased hybrid heuristic (with simulated arrivals, travel time, and onsite work time) is designed to estimate the capacity (third level) and iteratively improve the three levels of decisions.
A “facility” could be static or dynamic. Instead of physical buildings, facilities could be collection points, where items picked up by service units are collected and returned to a highlevel sorting/distribution centre. Facilities could also be crossdocking locations, where items from a highlevel distribution centre are sorted and distributed to lower level demand sites by service units. Certain logistic systems operate with such a multiechelon structure in which an intermediate layer acts as a facility. Crainic et al. [8, 9] addressed a twoechelon vehicle routing problem where the first echelon represents shipment between a single depot and capacitated satellite stations (or intermediate depots) for consolidation and the second echelon for shipment between satellite stations and customers. In the practice of some courier service, a convenient parking spot could also serve as an intermediate consolidation facility for sorting and distributing mail and is less costly and more dynamic to change location. The crossdocking operation with small facility cost motivates this work and Type 2 experiments (Section 5.2) are designed to model such delivery services.
The main theme of this work explores the case when the entire territory is divided into separate service regions, each served by a facility. The first two levels of decisions correspond to the facility location and demand allocation (service region of facility). The third level decision determines the capacity required for each facility. Within a service region with one or more demand sites, capacity can be shared. Between service regions, no sharing of capacity is considered in the planning stage to ensure selfsufficiency first in managing demand within a region. Sharing of capacity across service regions will be explored later by allowing a demand site to be assigned to one or more facilities by use of a setcovering model. The assumption of independence, adopted by Brimberg et al. [10], is observed in operating systems with simple management structure or when information sharing between service regions is insufficient. Examples could be found in military application, like field medical units, and onetomany distribution systems in Turkensteen and Klose [7]. Determining the three levels of decisions helps to answer related questions, such as the following: Given a configuration of facility locations and assigned demand sites, how is it to identify an appropriate response time service level and what is the capacity requirement of a resource? With a given capacity of a resource, how is it to allocate the units to one or more service regions to achieve a higher response time service level?
This paper is organized as follows. Related literature is described in the next section. Section 3 presents the problem statement. Section 4 introduces an initialization stage and a simulationbased hybrid heuristic. Section 5 describes the computational experiments and results. A discussion of the impact of the model assumptions and methodology used on the results is given in Section 6. A summary and final conclusion is given in Section 7 with suggestions for future research.
2. Related Literature
The threelevel problem is a combination of wellknown singlestage problems: the median network location problem, the travelling repairmen problem or minimum latency problem (MLP), and the bounded latency problem (BLP). Even the static version of each such problem is NPhard. Apart from special cases, like the 1median problem, the general median network location problem which determines the selection of (uncapacitated) points in a graph and its assigned demand nodes is NPhard when the objective is to minimize a weighted function of the assignment (Kariv and Hakimi [11]). The travelling repairmen problem (TRP) determines individual tours for repairmen to serve all customers with the objective of minimizing the total customer waiting time (or mean arrival time at customers). Even the 1TRP is NPhard as shown by Sahni and Gonzalez [12]. Another name for the 1TRP is the minimum latency problem (MLP) where latency of a customer is a measure of time delay experienced (equivalent to response time here) before his/her service starts. The boundedlatency problem (BLP), a complementary version of MLP, is to find the minimum number of repairmen (equivalent to minimum capacity here) serving all customers such that no customer will wait more than a latency bound (waiting time limit or response time here). The static BLP is first introduced and proved strongly NPhard in Jothi and Raghavachari [13]. Hence the static version of the current threelevel problem is NPhard, even if any stage has a given known solution. A hybrid heuristic combining optimization, simulation, and search techniques is proposed here.
Related integrated problems include the location and server allocation problem. Extension of mediantype location models often involves customers travelling to the closest facility to receive service (e.g., patients to hospitals), where travel distance is assumed deterministic. Aboolian et al. [5] examined a model where the objective is to minimize total system cost (comprising facility fixed cost, server cost, customer travelling, and waiting cost) where the waiting time (and cost) at each facility is approximated by the queuing model. An exact algorithm is designed to minimize the server assignment cost for each selected set of facility locations. Heuristics of descent approach and simulated annealing are also proposed to solve larger problems. Other related integrated problems include locationrouting problem (LRP) and travelling repairperson location problem. Both consider the location of facilities and routing of servers simultaneously. A common objective of LRP is to minimize the total cost associated with depots, vehicles, and routes. Only a few considered minimizing the total customer waiting time as the objective, such as Averbakh and Berman [14]. The travelling repairperson location problem has a similar objective of minimizing the average response time to an accepted call. Jamil et al. [15] developed a heuristic for a singleserver problem in locating an optimal home base, assuming Poisson call arrivals, firstcomefirstserved queue discipline, deterministic travel times, constant onscene service times, and a finite capacity queue for waiting calls. The single server can travel directly from one customer site to the next. When no call is in the system, the server would return to the home location and rest for a constant period of time.
Related studies of spatial allocation of resources can be found in field services repair technicians of Hill et al. [16], Chu and Lin [17], and Tang et al. [18]; emergency mobile repair units of Geroliminis et al. [19]; and parcel pickup and delivery service of Wong [20]. Poisson distribution is often assumed to model rare events of failure or accident occurrence rates. Methodologies employed include (statedependent) queuing model, hypercube queuingoptimization based model, network flow algorithm, and metaheuristics. In Powell [21], service engineers are assigned to jobs in geographical districts represented as a square grid of cells with different given demand. Each engineer is assigned to a cell as the home base, implying that the number of engineers available (service capacity) is simply the given number of cells. A deterministic network flow model (integer variables) was proposed to allocate jobs to engineers, such that in addition to jobs in his own area, an engineer is also allowed to service some requests in his adjacent areas. For a stochastic repair version, Hill et al. [16] developed an approximate statedependent queuing model to analyze tradeoffs between field service workforce size, territory size, and mean response time. With the territory represented by a rectangular grid, the squareroot law proposed by Kolesar et al. [22] and a statedependent queuing model were applied to approximate the expected travel times and expected response times. The analytical expected response time function developed is based on system parameters (including the number of servers) in each of these stochastic problems. Hence, it can be used to determine the minimum number of servers (service capacity) satisfying a given expected response time limit.
Another related application is in medical services. Largescale emergency response planning involves facility location, assignment of households to facility, and resource allocation of workers of different skills to be stationed at facility as discussed by Lee et al. [23, 24]. For planning of emergency medical systems, the hypercube queuing model by Larson [25] and Larson and Odoni [26] was developed to calculate the mean travel time to incidents, server workload, and number of dispatches per server. The nearestserver dispatching policy is adopted; that is, the server dispatched to a call is always the available unit closest to the call location. Other assumptions of equilibrium state of system, Poisson arrivals, and exponential service times in the queuing models were made. In ambulance dispatching problem when several call requests are waiting, Lee [27] designed a centrality policy to dispatch an idle ambulance to a call which is more centrally located with respect to other calls. The average and variation of response time outperformed the wellknown nearestneighbor (NN) policy in the experiments. Beraldi and Bruni [28] examined a location problem of emergency service stations involving assignment of demand points and allocation of vehicles to each station with the objective of minimizing the expected cost. The uncertainty of demand is modelled by a set of scenarios with different probabilities. As an alternative to response time service level, their requirement is based on demand intensity. The decisions made must ensure sufficient vehicles are allocated to a station to fulfil the sum of required vehicles of demand points assigned to it with a given reliability level under each scenario. A demand point can be assigned to one or more stations under each scenario while the location and capacity allocation decisions (number of vehicles) remain invariant under different scenarios. The maximum capacity allowed at each station is an input to be provided by the system planner.
In small package pickup and delivery services, service territory management is one of the key concerns as discussed by Wong [20]. It refers to the territory that a single service provider (service unit) will cover and may have to be adjusted on a daily basis due to workload fluctuations in order to balance workload among different service providers. In the territory planning problem in Zhong et al. [29], the objective is to minimize the total cost of completing the expected workload expressed in terms of vehicle travel time and service time. The main decision for this singledepot problem is the allocation of service areas (“cells”) to form a “core area,” where the number of core areas corresponds to the minimum number of drivers used, subject to a chance constraint that the assigned workload in the core area for a driver does not exceed his/her maximum working duration with a given probability level. The number of core areas is assumed fixed and estimated by the minimum number of drivers (service capacity) used from historical data. If response times can be incorporated into planning, it can enable a business to increase customer satisfaction and market share under demand uncertainty. In emergency systems, it can reduce casualties. Postal service is considered as a mode of service delivery in emergency response planning as described in Lee et al. [24]. Due to the mail carriers’ familiarity with the neighbourhood, they can be used in mass dispensing medicine responding to largescale biological attack as discussed by Wein [30] and Richter and Khan [31].
Various methods have been applied in solving network design or location problems. These include integer programming used in deciding locations, types of service stations, allocation of regions to stations for emergency service system by Coskun and Erol [32], tabu search for a multicommodity railway network design problem by Pedersen et al. [33], metaheuristic inspired by variable neighbourhood search for a multiperiod, multicommodity transportation planning problem by Hoff et al. [34], genetic algorithms for a multiobjective location problem by Li and Yeh [35] to maximize population coverage, minimize total transportation costs, and minimize proximity to roads, and descent and simulated annealing for a location and server allocation problem by Aboolian et al. [5]. This work aims at analyzing three levels of decisions: facility location, demand allocation, and resource capacity requirement. Hence, a hybrid approach combining some of the above concepts will be explored (including integer programming, neighbourhood search with a memory of solutions to avoid recycling).
3. Problem Statement
The problem will be first described followed by a list of assumptions and a mathematical formulation with notations. The problem components consist of a set of demand sites and candidate facility locations represented as nodes in a network. Facilities could be located at demand sites or as separate nodes. Each facility is equipped with one or more service units travelling to provide service to dynamic requests originated from nodes in its service region. A response time requirement is adopted to ensure the average response time of served requests not to exceed a predetermined limit () and a minimum percentage () of requests served within the limit (). (If only one condition is required, the other condition can be made redundant by choosing the right parameter value.) The three levels of decisions are (i) determining the number and locations of facilities, (ii) assigning each demand site uniquely to a facility, and (iii) finding the capacity level (number of service units) of each facility. The maximum capacity (number of servers) is assumed unlimited here. In express courier service (Lin et al. [36]), a fixed size of fleet is usually available for servicing requests. However in actual operations, additional backup contract couriers could also be used. (The sum of the two types is considered as the capacity decision here.) In situations when there is a specified maximum capacity limit (like allocation of vehicles to emergency stations in Beraldi and Bruni [28]), the methodology proposed can be easily adapted. The objective is to determine the minimum total capacity in the territory for different number of facilities to fulfill the given response time service level characterized by parameters and . The curves relating number of facilities and minimum total capacity can provide information for decisionmakers in logistic service planning. A list of assumptions made in this research is given in the following.(1)Each demand site generates dynamic random requests. The mean number of requests at each site and the coefficient of variation are known while the actual number and arrival times are not known with certainty.(2)Each demand site is to be assigned to exactly one facility.(3)Each request demands one service unit from the assigned facility.(4)All requests are treated with the same priority.(5)The number of facilities to set up is treated as a parameter. (The smallest value is determined in Section 4.1.1. The largest tested value depends on the capacity results in the experiments in Section 5.3.)(6)The capacity of a facility is expressed by the number of service units to be made available.(7)All service units begin at a facility with the work duration same as the service session.(8)The service requirement of a request comprises two stochastic variables: travel time and onsite processing time. The travel times depend on the sequential locations on a server’s route which in turn depend on the three levels of decisions (location, allocation, and capacity). The onsite processing time depends on the location and request. The mean time and coefficient of variation of each component are known while the actual values are unknown.(9)The mean travel time (or distance) between every pair of nodes is assumed symmetrical.(10)When a service unit completes a service at a customer site, no return to home location (facility) is necessary. Waiting at the current location and direct travel to the next assigned request (i.e., sequential trip travel) is allowed.
The threelevel problem with response time requirement and all deterministic, uncertain parameters can be formulated as a stochastic mixed integer program, representing a stochastic bounded latency problem with location decisions. To simplify presentation, it is assumed that a facility could be located at any node (). (This can be easily adapted to situations when only a subset of nodes can be considered.) A network representation of the problem is presented before the mathematical formulation. Let be the directed graph with node set and arc set . consists of an artificial source node () and a sink node () indicating the start and end of each route. Other nodes include location nodes and composite nodes representing a demand site coupled with its request number. Let be the number of requests occurring at demand site during the service session where both and the actual request arrival time of the th request () are stochastic parameters that could be generated from the arrival distribution. While a composite node is denoted by (), the simple location node () can also be represented as a composite node, 0, by assigning the request number . Hence, the arc set consists of three types of arcs: () links the source node () to a candidate facility node () referring to the setup decision; () represents two requests served successively on a server’s route, with the th request at node followed by the th request at node ; () indicates the end of a route on completing a request at a demand node, say the th request at node . By network construction, the last request served on every route will be linked with the sink node ().
Notations and Parameters. Consider the following:(deterministic) session duration, (deterministic) an upper limit on the maximum capacity of a facility or a large positive value, (deterministic) number of facilities to set up, (stochastic) number of requests from node () during session , (stochastic) sum of requests from all nodes during session , (stochastic) arrival time of the th request at node , , (stochastic) travel time from node to node , (assume 0), (stochastic) onsite processing time of th request at node , , .
Decision Variables. Consider the following: = (first level decision) 1 if a facility is set up at node , 0 otherwise, , = (second level decision) 1 if demand node is assigned to facility at node , 0 otherwise, , (third level decision) total capacity or number of service units, = flow (number of service units) on arc , = server arrival time at the th request at node , , (assume the start time at a candidate facility is , ), if the th request at node can be served within the response time limit , 0 otherwise, , .
Mathematical Formulation (Stochastic Mixed Integer Program). Consider subject to
The objective in (1) determines the third level capacity decision to enable the fulfillment of the 2parameter response time requirement ( and ) from all requests. This capacity value is represented by the total outflow (service units) from the source node () to facilities in (1). The selection of facilities is expressed in (2). The facility setup decision is related to the flow variable from the source node to the facility () in constraint (3). Constraint (4) requires each facility/demand site to be assigned to exactly one facility. The relationship between the first two levels of decisions, demand assignment and facility setup, is formulated in constraint (5). Every request must be fulfilled exactly once by imposing a unit inflow requirement on the composite demand node () in constraint (6). The flow balance constraint for every node (except the source and sink) is formulated in constraint (7). Constraints (8)–(11) relate the flow variables with the demand assignment decisions. Constraints (8) and (9) state that if flow exists from a location node () to its first request, then both nodes ( and ) are assigned to the facility at the start location (). Constraints (10) and (11) formulate similar relationship between two successive requests on a server’s route. Both request locations ( and ) must belong to the same facility. They are either assigned together or not assigned at all to a facility (). Constraint (12) restricts the start service time of a request not to be earlier than its release (or arrival) time. Constraint (13) formulates the precedence relationship between successive requests on a route as well as the subtour elimination constraints. The average response time requirement is enforced by constraint (14). Constraint (15) relates the response time of an individual request with its satisfaction variable () while constraint (16) requires a minimum fraction of all requests to satisfy the response time limit . The last constraint (17) declares the type of decision variables and their restrictions. The above formulation is a representation of the threelevel decision problem. In the dynamic environment, the stochastic parameter values are only available as the event occurs. The heuristic in the next section is designed to tackle the dynamic problem.
4. SimulationBased Hybrid Heuristic
The general facility locationallocation problem is NPhard as shown by Kariv and Hakimi [11]. Under uncertainty in demand calls, locations, and service times, a simulationbased hybrid heuristic is proposed. The initialization stage determines an initial solution for the three levels of decisions, followed by iterative improvement involving optimization, simulation, and ejection and reinsertion search techniques to identify sets of improved feasible solutions.
4.1. Initialization
To obtain the initial location and allocation decisions (first two levels), classical deterministic locationallocation models are solved. For each resulting service region (a selected facility with its assigned demand nodes), the initial capacity value (third level decision) is obtained by solving a deterministic bounded latency problem, simplified from the stochastic formulation (Section 3).
4.1.1. Initial Location and Allocation
The proposed method starts with finding the smallest number of facilities to set up (denoted by ) which divides the territory into the same number of separate service regions, each with one facility. This is achieved by imposing the constraint requiring the direct travel time (= distance/average vehicle speed ) between a facility and each of its assigned demand sites to be within the response time limit . (Note that variation in travel time and demand rates is not considered in the initial solution.) First, define as the set of facility nodes within the direct travel time limit from a demand site ; that is, and , where is the direct travel distance from node to node . The travel distances between pairs of nodes can be found from geographical information systems and the average vehicle speed from government reports (e.g., Transport Department, Hong Kong [37]). is obtained for demand site by simply comparing direct distance between node and every other node. Sets , , serve as input to finding by the following binary integer program.
Decision Variables: = 1 if a facility is set up at node , 0 otherwise, , = 1 if demand site is allocated to facility at node , 0 otherwise, ;
Formulation: subject to
The objective function in (18) determines the smallest number of facilities () required to reach out to each demand site () within the response distance limit . This limit is fulfilled by the construction of set defined above. Equation (19) assigns each demand site uniquely to a facility. Constraint (20) ensures that a demand site is assigned to an established facility within the distance limit (). Constraint (21) declares the decision variables. Thereafter for each input number of facilities, (), the above step can be skipped. The first two levels of decisions (location and allocation) are initially determined from minimizing the overall workload of the following median network location model with .
Formulation: and constraints (19), (20), and (21).
The workload in a service region depends on both demand intensities and travel time. The objective of minimizing the overall average (or expected) workload was also adopted in the territory planning problem of Zhong et al. [29]. The total workload in (22) represents the total average travel time taken to serve all requests directly from the facility (), where and are the mean request arrival rate from a demand site () and mean (direct) travel time between nodes and , respectively. (Note that the average onsite processing time,a constant for every unit request, is excluded from (22).) Equation (23) partitions the territory into () service regions. At this point, the first two levels of decisions, , and , have been initially obtained and the service regions are treated as independent problems to provide input to find the third level decision (capacity) and subsequently for further improvement (Section 4.2). To obtain another solution on the curve of number of facilities versus capacity, () is increased and the algorithm repeats from solving the above model described by constraints (19)–(23).
4.1.2. Lower Bound on Capacity in Service Region
The response time requirement is not considered here when estimating a lower bound on capacity which serves as the initial number of service units (third level decision) for a service region with a facility node (). This lower bound is obtained by solving a deterministic bounded latency problem (BLP) with side constraints (below). A BLP finds the minimum number of service units required to serve all demand nodes such that each node needs not wait more than a latency bound (equivalent to response time limit). The session duration () here defines the latency bound implying all requests to be reached within . Each demand node is visited at least once by a service unit. Based on assumption , the onsite processing time is only requestdependent, but not on the three levels of decisions. The sum of average processing times of all requests, denoted by , will be treated outside the route sequencing decisions as a side constraint (31), representing the supply and demand of working time from all service units. The problem is formulated by a mixed integer network flow model, named as NFM, modified from the stochastic formulation (Section 3). For each given service region (from results in Section 4.1.1), the node set consists of the facility node (), its assigned demand nodes, and two copies of the facility node representing the source node and a sink node . Hence, the travel time from to each demand node () in the region is and = 0. Suppose the total number of facility and demand nodes in the region of is and let denote the set of such nodes. The arc set, denoted by , consists of three types of arcs related to nodes and in : () links the source to a facility/demand node ; () represents two distinct nodes, and , served successively on a server’s route; and () is the arc indicating that is the last visited node on a route. Then define a subset by excluding all the end of route arcs () from , .
Decision Variables. Consider the following: = flow (number of service units) on the three types of arc , = 1 if arc is used, 0 otherwise, = server arrival time at node (assume the start time at the source node = = 0).
Formulation of NFM. Consider subject to
The objective function in (24) determines the minimum number of service units at the facility (source ) required to complete all requests in a service session. The natural lower and upper bounds of the required service units are imposed on the outflow (service units) from the source () to all nodes () in constraint (25). The demand constraint (26) requires at least one service unit to visit demand node . Flow balance constraints are formulated in (27) for every node. Subtour elimination constraints are formulated in (28)–(30), where (session duration) is the latency bound (or maximum waiting time in the session). The sum of average onsite processing times () is treated in constraint (31), representing the aggregate supply and demand relationship on working time (sum of travelling time and onsite processing time). The supply expression (left side of (31)) helps to determine the objective value—lower bound on capacity. Constraint (32) declares the types of decision variables and their restrictions.
It should be noted that, after obtaining the initial solution for the threelevel decisions from this section, the direct travel time limit (= ) between each selected facility and its assigned demand sites needs not be enforced, due to consideration of uncertainty in parameters. (If the facility location is infeasible for its assigned demand sites, this will be reflected in the simulation procedure of the hybrid heuristic in which the response time requirement cannot be satisfied with any increase in service capacity, i.e., no convergence.)
4.2. Iterative Improvement by Simulation and Ejection and Reinsertion Procedure
Apart from the impact of the three levels of decisions, the response time performance also depends on a number of factors, such as geographical characteristics of the service region, timedependent realtime arrivals, traffic condition, availability of realtime information, and server dispatch logic. To model the uncertainties in call arrival time, travel time, and onsite processing time caused by these factors, a queuing network simulation model SIM (Figure 4) is developed to simulate the operations in each service region. In addition, two choices of simple dispatch algorithms are available in SIM to model the dynamic situation. SIM is used for adjusting the capacity (denoted by ) in the service region of the facility node () whenever there is under or overachievement of the response time requirement. To improve the three levels of decisions simultaneously, an ejection, reinsertion procedure is applied iteratively until a termination condition is met. During this iterative procedure, any new feasible/infeasible region evaluated by SIM is recorded to save future simulation time if it reappears in the search. The iterative improvement algorithm is presented in the flowchart in Figure 3 followed by more details of the important components. Notations are first classified and defined as follows.(i)Solutions: denotes the initial solution (results of the initialization stage in Section 4.1) and the first complete solution obtained by applying SIM to find the feasible capacity for each service region in . Let denote the incumbent solution and the new solution generated. After every ejection step when some nodes are ejected from regions, the remaining solution of is denoted by . Throughout the algorithm, the best found feasible solution is stored in with its total capacity in .(ii)Feasible/infeasible service regions: represents the set of feasible service region. In each feasible region, the information recorded is facility node, assigned demand nodes, capacity, server utilization, and average number of served requests per session. represents the set of infeasible service region found during the algorithm. The information recorded for each infeasible region consists only of the facility and demand nodes.(iii)Ejection pool: represents the ejection pool holding nodes ejected from an incumbent solution . The size of is dynamic and denoted by . records the size when was last improved. The dynamic parameter represents the maximum size of . When there is improvement in in the present size () during a given number of iterations, is increased from by a constant.(iv)Iteration count: dynamic counters include , the number of iterations recorded without improvement of . The maximum value of is denoted by (a constant), after which some algorithm parameter values will be changed.
In the iterative improvement algorithm (Figure 3), the initialization step includes reading input data of , initial ejection pool size , , running time limit, and setting initial values of variables: , , , , = initial + (constant), and iter_{no_imp} = 0. The next step finds the first complete feasible solution () by running an embedded subroutine SIM (Figure 4) in Eval_cap for each region in the initial solution () (Section 4.1). As the capacity in is a lower bound, if response time performance (mean and/or percentage achievement) is underachieved, the capacity is increased by one and simulation will repeat until service level is satisfied. Record the current facility location, demand sites, capacity decisions, together with server (or resource) utilization, and average number of served requests from the simulation in the memory array of feasible service regions (). The main concept of the iterative algorithm is to search for more solutions by repeatedly selecting nodes from an incumbent solution () into the ejection pool and reinserting them back into the remaining solution () exhaustively using a branchandbound procedure. An inner loop of the flowchart applies this concept until there is no improvement on the best total capacity for a given number of () iterations. An outer loop changes the size () of and repeats the inner loop until the maximum size () is reached. The algorithm terminates under any of the three conditions: the running time exceeds a given limit, the lower bound of is attained as it reaches the number of facilities (), or the maximum size () of the ejection pool is reached. Details of important components are summarized as follows.
4.2.1. Arrays of Feasible and Infeasible Service Regions
To save computational effort, whenever the capacity decision of a service region (a facility and assigned demand nodes) has been evaluated by SIM, it will be recorded. Array stores five types of information: the threelevel decisions of a feasible region (facility node, assigned demand nodes, and capacity), server utilization (in percent), and average number of served requests per session. Array only stores the set of facility with its demand nodes not satisfying the response time requirement (i.e., infeasible regions).
4.2.2. Eval_cap
This procedure evaluates the minimum feasible capacity () and utilization of a facility in its service region given a starting capacity value (). If the region already exists in , then the capacity is retrieved for calculations and this subroutine ends. If a new service region is found, the main concept here is to apply the specific dynamic dispatch algorithm on the service units to complete simulated requests in the region. When the simulation results (in SIM) indicate violation of any response time requirements, is increased by one and the simulation experiments repeat until the requirements are first satisfied. Capacity is then returned. The new service region and will be recorded into together with other relevant information described above. Conversely, if units are sufficient to fulfil the response time requirement, (= ) will be decreased by one and simulation experiments repeat until the requirement is first violated. Then will be returned as the capacity of this new region to be stored in . Note that Eval_cap may involve recomputing the new facility node if the original facility node has been ejected as one of the nodes in the iterative improvement algorithm. The testing of new facility node is in increasing order of workload (= sum of {average travel time from the tested facility to node × demand rate of node} over all nodes in the region). If no capacity () can satisfy the response time requirement, the nodes of this region will be stored in and infinite capacity is returned.
4.2.3. Generate New Incumbent Solution
In the iterative improvement procedure, a new solution is generated to diversify the search. It is obtained by solving a setpartitioning model on with an additional lower bound constraint . This imposes a gap between the objective value (total capacity) of the new solution and by a random factor , where . If the lower bound, , is too large that there is no solution, it will be relaxed to half the value of and the current lower bound (i.e., ). The setpartitioning model with the revised lower bound constraint is rerun until a feasible solution, denoted by , is obtained.
4.2.4. Select () Nodes from the Incumbent Solution into Ejection Pool
The rationale behind this is to allow changes to an incumbent solution by ejecting nodes through two procedures.(i)First, select a facility () randomly from based on the total utilization (= number of service units × server utilization percentage) of facilities in a way such that a facility with higher total utilization has larger probability of being selected.(ii)Randomly select a demand node in facility based on its proximity to other facility nodes in a way such that a node being closer to other facility nodes is more likely to be selected.(iii)Repeat the above until nodes are selected into .
4.2.5. Perform Reinsertion
The nodes in are reinserted in different ways back into service regions of the remaining solution () by the branchandbound procedure.(i)For every node () in , find its distance to each facility node in . Sort the distances in increasing order to create an ordered list, denoted by , of size . Repeat for every other node in . The joint list formed is .(ii)In each set of insertion, node in is inserted into a facility in list () until each of the nodes is assigned a facility. This is followed by capacity evaluation of each affected facility (with its assigned nodes) by applying procedure Eval_cap.(iii)When a partial or complete solution (≤ service regions) is evaluated with sum of capacity , this set of inferior reinsertion is discarded. Accordingly when a feasible complete solution obtained has smaller total capacity , and are updated.
4.2.6. Size of Ejection Pool
Whenever the best objective value () is improved, the current size () of will be recorded as and the ejection procedure is allowed to eject more nodes from by increasing the maximum size () of from by a constant parameter.
4.2.7. SIM (Simulation Model)
SIM is a discreteevent queuing network simulation model with spatial requests arriving dynamically in a given service region. The objective is to find the minimum capacity in the given service region satisfying the response time requirement. It is embedded within Eval_cap. The advantage of using simulation approach is the flexibility in testing different variable factors (and their interactions) to generate a distribution of outputs under a given response time requirement ( and ). Unlike static problems where all information is available at the beginning, the data in the dynamic problem (e.g., request arrival time, next available time of server) will only be known when the event occurs. For a given service region, the variables considered include the number of requests, their arrival times, location, travel time and onsite processing time. In addition, two simple dispatch algorithms are applied to examine their impact on the heuristic performance. Figure 4 shows the logical design of SIM with the dispatch algorithm firstcomefirstserve (FCFS). An alternative based on the nearestneighbour rule (NN) is available for dispatching a server to a nearby request after its actual service completion. The pseudocode of NN is shown in Algorithm 1.

The variation in each timebased variable (arrival time, travel time, and onsite processing time) is modelled by a normal distribution characterized by a given mean and standard deviation. For travel time data, given that the mean travel time (= distance/average vehicle speed ) from node to node is and coefficient of variation is , the travel time will be simulated from a normal distribution with mean and standard deviation . To avoid extreme values being simulated, a lower bound of onehalf and an upper bound of three times the mean are imposed on the simulated travel time. As requests are not necessarily failures or rare events (often approximated by Poisson arrivals), the interarrival time of request at each demand node () is approximated by a normal distribution with mean arrival rate (or mean interarrival time of )and coefficient of variation of interarrival time (i.e., standard deviation is ). Requests generated from all demand nodes are then sorted in ascending order of arrival times for dispatch. The service time of a request comprises the sequencedependent travel time and onsite processing time. Similarly, the onsite processing time will be simulated from a normal distribution with given mean and standard deviation , where is the coefficient of variation. SIM will be run for a predetermined number of () replications over which the performance statistics of average travel time, average response time, percentage achievement of response time limit (), server utilization (percentage), and average number of served requests are collected. Adjustment of capacity for a service region in the simulation model is necessary when the response time requirement is under or overachieved. Typically the initial capacity in each region (from objective in (24)) is likely a lower bound. The adjustment is set upwards in incremental step of 1 service unit. When evaluating the capacity of the remaining solution () after ejection of nodes, the adjustment is downwards in steps of −1 service unit even if the input capacity is feasible. The adjusted capacity will act as input to SIM for repeating another set of replications until the response time requirement is first achieved. For upward adjustment, the first feasible capacity is then returned. As for downward adjustment of capacity, the stopping condition is the first occurrence of underachievement of the response time requirement. Hence, one additional unit to the current capacity will be returned as the minimum capacity required. Note that a given service region could be infeasible. This is realized when the capacity does not converge for the last trials (where each trial consists of replications). In Type I experiments assuming unit request per node (Section 5.1), the value of is set to be the number of nodes in the region as it takes at most trials to adjust the capacity to its upper (or lower) limit. Otherwise, can be an input parameter. When no convergence occurs, the infeasible facility and demand nodes will be stored in and infinite capacity is returned from SIM.
4.2.8. Dispatch Algorithms (Dynamic)
The motivation behind the choice of the two dispatch algorithms is to mimic the dispatch logic of some practical systems as much as possible (without involving too much computational time as simulation is adopted). Examples include the online taxi automation system mentioned by Mandle et al. [38] which primarily focused on reaching individual requests in the shortest possible time to enhance customer satisfaction. Requests are prioritized in a firstcomefirstserve manner to be assigned to the nearest taxi. In emergency ambulance dispatch, a common rule is to send the closest unit to the request site. Various researchers studied other dispatch strategies. Bandara et al. [39] incorporated call urgency into their proposed dispatch heuristic which assigns the nearest available ambulance for Priority 1 calls and the less busy ambulance for Priority 2 calls. Results from simulation experiments reported an increase in patient survivability, decreased average response time, and higher percentage of Priority 1 calls served within 10 minutes. As requests have equal priority here (assumption ), they would all be treated like Priority 1 calls. The main difference between the two dispatch algorithms is customerbased (in FCFS) or serverbased (in NN) and the use of estimated or actual service completion time information in dispatching servers to requests. In FCFS (Figure 4), requests prioritized by their arrival order are assigned to the server with the estimated earliest arrival time. This is calculated by the sum of the estimated earliest completion time (of already assigned requests) of the server and the mean travel time from his last request location to the request being considered. The completion time estimates are updated whenever an actual completion occurs to facilitate future assignments. On the other hand, the request arrival order may not be respected in NN (Algorithm 1). Unassigned requests will be stored in a list () and whenever an actual service is completed, the server will be dispatched to the nearest unassigned request. Both dispatch methods will use the mean travel time () between the two locations in estimating the arrival time of a unit at the request location. When the estimated earliest arrival time exceeds the session end time, the request will not be accepted temporarily and will remain in the list for future assignment to possibly another nearby server. Otherwise, the request will remain unserved in the session.
4.3. Impact of Sharing Capacity
Sharing capacity will allow a demand node to be served by one or more facilities. To explore possible advantage, a classical setcovering model (Appendix B) with an additional constraint to select facilities (assumption in Section 3) is applied to the final pool of feasible regions () at the end of the hybrid heuristic. The basic (binary) decisions , involve selecting service regions in with minimum total capacity (or other objective criteria) such that each demand node in the territory is covered by at least one facility. (If an alternative set of service regions (or facilities) is to be generated, one can simply add one more constraint to forbid the recent set to be reselected.)
5. Computational Experiments and Results
Two types of experiments are performed in testing the simulationbased hybrid heuristic. The first type simulates disaster outbreak with multiple requests occurring in a short time interval. Twelve data sets of size from 29 to 262 cities are selected from the Travelling Salesman Problem library [40], assuming unit request per node. Certain variables (interarrival time distribution, travel time variability, and dispatch algorithm) are tested with two alternatives each to examine their impact on the total capacity. The second type of experiments simulates the express delivery service environment where arrivals span over a longer time period and nodes in the service network have different demand intensities, like clustered customer nodes in urban cities.
5.1. Type 1 Experiments: Requests Arriving Early in a Short Interval
The data sets from the Travelling Salesman Problem (TSP) [40] provide the distances in the network. Each node here is assumed to have one unit request. In an extreme case, all requests are released at the beginning of the service session. With no variability in travel time and onsite processing time, the problem would be deterministic. In reality, the request calls arrive dynamically over a short interval; travel times and onsite processing times are uncertain. Hence, results from a deterministic problem are used as a reference for comparison with the hybrid heuristic solving the dynamic problem. The deterministic problem of finding the minimum number of servers such that each request needs not wait more than a time limit (latency bound) has been introduced as the bounded latency problem (BLP) for a given facility and its demand nodes (Section 2: Jothi and Raghavachari [13]). When facility decisions are unknown, the problem is named here as the BLP with location decisions (Appendix C)—a simplified deterministic version of the stochastic mixed integer program (Section 3) with unit request per node and all requests available at time 0. The computational time required for solving this NPhard problem is significant for problems of medium to large size. Hence, it will be allowed more running time than the hybrid heuristic. After observing the performance of both methods in preliminary experiments, the maximum time limit allowed for the mixed integer program (Appendix C) would be 1,800 CPU seconds and half of that for the hybrid heuristic, that is, 900 CPU seconds. Beyond these limits, the objective function shows little improvement. Model NFM, providing the initial capacity for each region (Section 4.1.2), is given only 30 CPU seconds, while allowing more time (900 − 30 = 870 CPU seconds) for the iterative improvement procedure in the hybrid heuristic.
Type 1 experiments simulated the dynamic problem in which the hybrid heuristic is applied with two dispatch algorithms separately. Due to incomplete information, results from a dynamic problem would not be better than an optimal solution of an equivalent deterministic problem. Nevertheless, it is difficult to solve an NPhard problem exactly especially for large problems. In general, it is observed that the (optimal) result of total capacity from the mixed integer program would provide an upper bound to the heuristic value, unless there is large variability in some parameters. (When there are few facilities and variability in travel time is moderately high ( = 1), simulation results show that, even with a large capacity, a high response time requirement (e.g., = 95%) could not be fulfilled (Figure 7, when ). This insight will also be illustrated in the small static example in Figures 1 and 2 by comparing the impact on total capacity in varying travel time versus demand intensity.) For simplicity, the onsite processing time is assumed to be zero here. To model the dynamic situation, the following three factors and two alternatives of each are tested in the hybrid heuristic, giving a total of 8 versions for each TSP data set for each value of (Tables 1, 2, 3, and 4):(i)interarrival time distribution: uniform distribution; normal distribution with = 0.5,(ii)variability in travel time: = 0; normal distribution with = 0.5 ( = 0 implies constant average travel time between nodes),(iii)dynamic algorithms explained earlier (Section 4.2): FCFS and NN.
 
*Optimal; ^{#}no convergence in capacity. 
 
*Optimal; —: no solution. 
 
—: no solution; ^{#}no convergence in capacity. 
 
—: no solution; ^{#}no convergence in capacity. 
5.1.1. Heuristic Parameters
The choice of parameter values and its variability affect the rate of change of capacity with the number of facilities. When the response time requirement is tight (small and/or large ), larger capacity saving is observed when facilities are added to its minimum feasible value (Figures 5–7), especially when travel time has large variability. To select the value of , the distances are converted to time by assuming a vehicle speed of = 100 km/hour. As each request should not wait more than , the value of is chosen as a calculated factor, , from the data set, where is a constant taken from and is the average travel time from node to node . The factor reflects the closeness of demand nodes from one or more facilities within the time limit . To simulate calls arriving early in a short interval in the dynamic environment, the call arrival times are generated from the normal distribution with mean at and the largest arrival time bounded by . The session duration is set to be to allow latearriving calls to be able to satisfy the response time requirement. Results are compared with the alternative uniform arrival distribution with simulated requests arriving over the same interval and with the same . To ensure that almost all calls would be served for comparison with results from the mixed integer program (Appendix C), a high percentage fulfillment () of 95% is chosen, as well as for the percentage of calls required to be served within the session. In both Type I and II experiments, the number of replications in SIM is chosen to be = 25 and initial ejection pool size = 2. When is updated (from + constant), the incremental constant = 3 and = 7.
5.2. Type 2 Experiments: Requests Span over Time with Higher Variability in Data
The operating environment of express delivery services allowing multiple requests per demand node is simulated here. Customercentred response time performance will help increase revenue. As the problem size is large, only the hybrid heuristic with different input factors will be run for comparative analysis with no absolute comparison from the mixed integer program (Appendix C). The data and parameters came from three sources of delivery service.(i)The first source provides locations and demand data in the network from reallife data of a local delivery service with customers distributed in 89 housing estates (demand sites) and 5 candidate depots on Hong Kong island resulting in a total of 94 nodes [41]. The geographical characteristics consist of densely populated clustered districts. Pairwise travel distances were estimated by a geographical information system. An average vehicle speed of 20.1 km/hour provided by Transport Department, Hong Kong [37], helps to convert distances into travel times. The average daily demand volume is 21,090 from all demand sites (including both residential and business customers). Data set from this source are made available on internet [42], with mean daily volume of node () denoted by .(ii)The second source, an international express delivery company described in Lin [43], helps to approximate the express demand. It has 550 customer locations in Hong Kong while the geographical location is not disclosed. To approximate the express demand in mail delivery (first source), an adjustment factor of 550/21090 is adopted. Assuming that a total of 550 express requests occur on an average day of 10 work hours, demand node has an estimated mean request arrival rate (per minute) of /(10 work hours per day × 60 minutes). Accordingly, the interarrival time distribution has mean and standard deviation . A minimum time gap of 10 seconds is imposed between the arrival of successive requests and a minimum of 5 minutes on the travel time to the next request.(iii)The third source, a Taiwan express delivery company in Lin et al. [36] together with the second source in Hong Kong [43], provides certain operational information in the express delivery service, including the average onsite processing time () of 5 minutes. A minimum of 2 minutes and maximum of 30 minutes are assumed here. A workday actually consists of two halfday sessions: 3.5 hours and 6.5 hours, respectively, with a lunch break of 1.5 hours. The experiments here will focus on the longer afternoon session (6.5 hours), assuming independent work sessions. Unaccepted calls arriving near the end of the session will be assumed lost.
The scenario with a moderate variability in timebased parameters is tested by setting (with upper and lower bounds imposed on simulated values mentioned above). Response time service level is tested from low to high requirement. The mean response time limit assumes some convenient values of 90, 60, and 30 minutes. Two sets of percentage requirements are adopted for each : = 50% and 90%, respectively. To compare fairly between the two dynamic dispatch algorithms (FCFS and NN) and ensure that both serve similar number of requests, the average percentage of served requests recorded in FCFS is enforced as a lower bound in NN when requirement is low ( = 50%). When requirement is high ( = 90%), the average percentage of served requests must be at least 95% in both dispatch algorithms. The runtime of different components in the hybrid heuristic is chosen after initial testing. As in Type 1 experiments, the hybrid heuristic has a running time limit of 900 CPU seconds in which 30 CPU seconds are allowed in Model NFM for finding the initial capacity for each region (Section 4.1.2).
In both Type 1 and 2 experiments, the number of facilities () tested starts from the smallest feasible value, assuming that the mean direct travel time between a facility and each demand node is within (Section 4.1.1). The subsequent values are chosen when the total capacity results can reflect significant change in the curve. The largest is chosen when the heuristic capacity reaches the lower bound () or shows an increasing trend (i.e., worse). All algorithms are coded in Visual Basic.NET 2005 version and the experiments are performed on a Pentium 4, 2.5 GHz processor. IBM ILOG CPLEX 12.5 is used to solve the small static 4node example in Figures 1 and 2 (mathematical formulation in Section 3), optimization subproblems in the hybrid heuristic, and the deterministic problem (Appendix C) for comparison of results in Type 1 experiments.
5.3. Test Results
Tables 1–4 show the results for Type 1 experiments based on the 12 TSP data sets ranging from 26 to 262 nodes. The mixed integer program (Appendix C) can only reach optimality in 4 instances with fewer than 100 customer nodes (Table 1: data set bays29 with , 8; att48 with ; and Table 2: berlin52 with ).
In the first five data sets (Tables 1 and 2) with fewer than 100 nodes, the mixed integer program and hybrid heuristic produce comparable values in total capacity. When variability in parameters is small (uniform arrival distribution or = 0), the heuristic produces lower capacity value than the mixed integer program, apart from instances when number of facilities () is at its smallest value (i.e., or 2 in Tables 1 and 2). When is small and travel time variability measure , no convergence in capacity or very large value was experienced in several data sets (e.g., Table 1: bays29 and att48), implying impossible achievement of the response time requirement. The decrease in total capacity is more significant when increases from the smallest feasible value to the next (e.g., Table 1: data set bays29 when ; att48 when ). When problem size increases beyond 100 nodes (Tables 2–4), it becomes increasingly difficult for the mixed integer program to obtain a feasible or improved solution. The relationship of the capacity versus is irregular in the MIP results. For larger problems of over 180 nodes (Table 4), only feasible solutions can be obtained from the mixed integer program when is large.
Some insights are drawn from the experimental results (Tables 1–4) of the hybrid heuristic.(i)Initially, there is a decreasing trend of total capacity with decentralization of facilities as observed for each scenario tested on a data set. Thereafter, the total capacity levels with only small variation due to randomness. Beyond a certain limit, capacity would gradually increase as each additional facility will require a minimum amount of resource (e.g., 1 service unit).(ii)The higher the variability of parameters (interarrival time, travel time), the larger the total capacity required. (Compare capacity results of scenario Uniform arrival rate versus Normal ( = 0.5) while the other two factors remain the same. Similarly, compare scenario = 0 versus = 0.5.)(iii)The variability in travel time increases capacity more than variability in interarrival time, particularly when only a few facilities are set up. (For small values, compare change in capacity between two pairs of scenario: scenario Uniform arrival rate to Normal ( = 0.5), both with = 0; and = 0 to = 0.5, both with Uniform arrival rate. For instance, in Table 4, data set gil262, at the smallest : Based on FCFS dispatch, ; and . Hence, capacity change in . Based on NN dispatch, ; and . Hence, capacity change in . In both types of dispatch, this insight is valid. The same is observed for other data sets when is small.) Another illustration is on the small static 4node example in Figures 1 and 2. We explore the change in capacity if the actual demand is doubled, versus the actual travel time takes twice as long, while other parameters remain unchanged. The scenario of duplicating the demand (number of requests per node increases from 2 to 4) versus doubling the travel time between every two nodes (from 15 to 30 minutes) is compared. The optimal (minimum) capacity satisfying the same response time requirement (average response time ≤ = 15 minutes) is shown in Table 5. (This is obtained by solving the formulation in Section 3, assuming parameter values are deterministic.) The same insight is observed for small or 2 in Case 1, and in Case 2.
 
Case 1: (worst case) all requests arrive at time 0. Case 2: (average case) half of the requests arrive at time 0, the other half at the 30th minute in an hour. 


The simulationbased hybrid heuristic can obtain feasible capacity values much easier (with half the total running time of the mixed integer program) and allows variation in different parameters in examining their impact. The capacity values obtained are more stable and lower than the deterministic model as problem size grows.
The Type 2 experiments are run under the scenario of moderate variability in timebased data (). The relationship curves of total capacity versus at different values of and are plotted for the two dynamic dispatch algorithms FCFS (Figure 5) and NN (Figure 6), respectively. These results can provide information to the following.(i)Identify appropriate response time service level and allocate demand sites into service regions, given the number of facilities and total capacity available. Conversely, capacity can be estimated for a defined service region under a given response time service level.(ii)Improve service level with a given capacity. For instance in the lowest requirement curve ( = 90 min. and = 50%), point A in Figure 5 represents a single facility and 16 service units. It can be improved to service level ( = 60 min., = 50%) by setting up (at least 1) additional facility. Similarly in a higher requirement curve ( = 90 min., = 90%), point B with 22 service units in a single facility can be improved to service level ( = 60 min., = 90%) by setting up (at least 1) additional facility and with fewer units. Point C in Figure 6 illustrates a similar characteristic with another dynamic dispatch algorithm (NN). These improvements are possible typically when only a few facilities are set up and service level is not high.(iii)Adopt an appropriate dispatching rule. When the response time service level is more demanding (small and/or high ), the dispatch algorithm FCFS results in lower total capacity than NN since the order of service in FCFS is approximately following the call arrival order. On the other hand, NN will be beneficial when the response time requirement is moderate (e.g., = 90 min., = 50%), as there is more flexibility for a server to complete nearby available requests, thereby increasing productivity per server.
Additional experiments are conducted for requirement beyond the highest service level ( = 30 min, = 90%) in Figures 5 and 6. Figure 7 represents the service level curves ( = 30 min, = 95%) for the two dispatch algorithms. No capacity is feasible for the smallest (= 4) when considering uncertainties, even if it is feasible under average parameter values. They tend to have large fluctuation in capacity compared to lower service level curves. However, they can still reflect the initial trend of reduction in total capacity for decentralized facilities. As increases, the capacity stabilizes for some range of but will increase again with larger . In general, decentralization results in shorter travel distances to the next assigned request, quicker response time per trip at the expense of more service regions and facilities to be administered. Here, it is shown that when sequential trip travel is allowed for servicing requests, the minimum total capacity does not decrease monotonically with increase in number of facilities, but capacity will increase beyond a certain limit of . Figures 5 and 6 also show that the higher the service level requirement (small and large ), the wider the separation from the lower service level curves. Besides in the additional experiments, more fluctuation in total capacity is observed as timebased parameters increase its variation (larger coefficient of variation).
The impact of sharing capacity (Section 4.3) can allow some demand nodes to be “covered” by more than one facility. This occurs more frequently in nodes with small demand intensities. Hence, in the dynamic environment, such nodes could have second (or multiple) coverage provided by another facility (or service region) when service units in the first responsible facility are busy. The savings in total capacity are not much in the experiments, at most one or two units. Other capacity sharing models could be explored in sequential trip travel. This would be similar to split delivery options adopted in some vehicle routing operations.
6. Sensitivity of Results to Model Assumptions and Methodology Proposed
After solving the problem based on assumptions in Section 3, a natural step is to realize certain model assumptions may limit the solution quality or oversimplify reality, such as the following:each demand site is to be assigned to exactly one facility;all requests are treated with the same priority.
Relaxing assumption implies allowing service units from one or more facilities to respond to a request. Accordingly, the constraints related to assignment variables () in the mathematical formulation (Section 3) could be modified. However, a larger service region may imply larger travelling time and response time which may offset the benefits from capacity sharing. This should be further investigated. Assumption is unrealistic for emergency response systems. One approach is to apply a twopriority class to differentiate between requests and adopt different strategies, for example, response time service levels, dispatch methods, for each class, which is simply an extended version of the current problem.
Simulation is only one approach to model uncertainty when analytical formulas are unavailable. It requires some information on the distribution of uncertain parameters and lower/upper bounds are necessary to avoid using extreme simulated values. Different distribution assumed for an uncertain parameter may result in different total capacity values. However, the general trend of the curve relating total capacity and number of facilities is expected to be much the same. When the response time service level requirement is high (small and/or large ), the curve tends to show large fluctuation in capacity, possibly due to the randomness nature of simulation. Despite requiring longer computational time and more coding effort, the advantages of applying simulation to this research include the following.(i)Revealing an infeasible problem with uncertain parameters even if the problem seems feasible based on average parameter values. When setting up only a few facilities, even if the average direct travel time between facilities and assigned nodes is within the average response time limit, simulation can reveal the solution is infeasible when allowing variability in parameters (e.g., Figure 7 when , static 4node example in Figure 1, and Table 5 when , and actual travel time is twice the average travel time).(ii)Identifying the significant uncertain parameter(s) with larger impact on the results. When only a few facilities are set up, the variability in travel time tends to increase capacity more than variability in demand in achieving the same response time service level (e.g., Tables 1–4 when is the smallest number).
The ejection and rejection procedure is one of the iterative improvement approaches. Other global or local search algorithms could be used as alternative, together with memory of feasible/infeasible regions. Performance comparison could be made first in the deterministic problems (e.g., Section 3 formulation assuming all deterministic parameters; mixed integer program in Appendix C) before considering the uncertainties.
The two dynamic dispatch methods could be improved by dynamic/adaptive scheduling algorithms which consider multiple serverrequest assignments simultaneously. The advantage of using simple (wellknown) dispatch methods here is to avoid increasing the running time when the iterative simulation approach is adopted for this threelevel integrated problem.
7. Conclusions
This study has provided an analytical framework to tackle a threelevel territory planning problem involving simultaneous decisions on facility location (first level), demand allocation (second level), and resource capacity (third level) under uncertain demand, travel time, and service time when sequential trip travel is also allowed. Response time performance requirement is common in many industries. It may appear in the form of an upper limit () imposed on the average response time or a minimum percentage () of served requests satisfying a response time upper limit (). In emergency systems planning, Carter et al. [44] showed that defining response areas for each ambulance will decrease the average response time. Bandara et al. [39] proposed to incorporate better dispatching rule for ambulances together with defined response areas by ambulance in their future research. Without considering call priorities and operational constraints, the threelevel integrated problem is related in a way by considering the ambulance location as a facility, response areas as allocated demand sites, and number of ambulances (at each location) as resource capacity.
A simulationbased hybrid heuristic offers a flexible approach to test uncertainty factors and different servicing strategies. The current framework for a single period can be extended to a multiperiod planning problem by increasing the number of replications (with periodspecific parameters) in the simulation model (SIM) to determine the capacity decision by period when the highlevel decisions (facility location and demand allocation) are given or temporarily fixed. The relationship of this threelevel problem with the deterministic bounded latency problem (BLP) is pointed out. When all parameters are deterministic and with unit request per node, the threelevel problem corresponds to a BLP with location decisions and the latency bound given by the response time limit . This can be formulated as a mixed integer program (MIP). Both the simulationbased heuristic and MIP are tested on twelve travelling salesman problem (TSP) data sets containing 29 to 262 nodes [40], assuming unit request per node. The heuristic is run with three different factors (interarrival time distribution, travel time variability, and dynamic dispatch algorithm) where each factor has two alternatives, resulting in eight versions. For small problems of up to 100 nodes, the heuristic produces solutions more efficiently and capacity values are comparable with the MIP results. For larger problems, the heuristic results are much lower than the best MIP results even with half the running time. The second type of experiments simulates the delivery service environment with local data and operating parameters from two local sources and a third source in Taiwan. Arrivals of requests are simulated. Results show that a policy with few facilities can achieve higher response time service level with the same or lower total capacity by operating with more facilities up to a certain limit. Beyond this limit, total capacity will increase. Some future research directions include the threelevel problem with heterogeneous resources and servicing strategies, like capacity sharing and dynamic/adaptive scheduling of realtime requests.
Appendices
A. Static Example of 4 Nodes
Demand arrival rate per node = = 2 per hour; travel time between every pair of nodes = = 15 min.; onsite processing time = = 5 min.
Response time requirement: average response time 15 min.
Let denote node if a facility is set up, otherwise ().
Let denote the th request from node (; ).
For more details see Tables 6 and 7.
B. A SetCovering Model with an Additional Constraint to Explore Sharing of Capacity Across Regions
Parameters. Consider the following: capacity of service region , set of service regions () in that includes node .
Decision Variables. Consider the following: 1 if service region is selected, 0 otherwise, .
SetCovering Model with an Additional Constraint. Consider subject to
The objective function in constraint (B.1) minimizes the total capacity by selecting an optimal set of feasible regions in . Constraint (B.2) requires each demand node in the territory to be included in at least one service region. Constraint (B.3) is the additional constraint requiring a total of facilities to be selected (assumption in Section 3). The selection decision variables of service regions are declared in constraint (B.4).
C. The Bounded Latency Problem (BLP) with Location Decisions
Parameters. Consider the following: number of facility and demand nodes in network, number of facilities to be selected, (artificial) source node of network, (artificial) sink node of network, set of arcs in network , set of arcs in excluding those linked to source, sink, or between a node and itself , = average travel time from node to node , (assume ), = onsite processing time of node .
Decision Variables. Consider the following: = 1 if a facility is set up at node , 0 otherwise, , = flow on arc , = 1 if arc () is used, 0 otherwise, , = server arrival time at node (used in the subtour elimination constraints), .
Mixed Integer Program. Consider subject to
The main difference with the BLP is the additional location decisions of facilities and its assigned demand nodes. By network construction, the source node () is linked to every facility node which could be set up at any facility/demand node, without loss of generality. The allocation decisions (of demand nodes) are represented by nodes visited on the path(s) originating from a facility node. In every feasible solution, each demand node will have exactly one facility node as its predecessor. Unit request is assumed for each facility/demand node and all requests are available at time 0. The response time requirement (), represented by constraints (C.10), is imposed on the server arrival time at every node (except sink node).
The flow variables () represent the number of service units travelling between two nodes (from to ). The objective in (C.1) determines the minimum capacity (number of service units) to fulfill the response time requirement () for all requests. This capacity is represented by the total outflow from the source node () and its natural lower and upper bounds are given in constraint (C.2). The selection of facilities (Section 3, assumption ) and their locations are expressed in equation (C.3). Constraint (C.4) restricts that a facility node () can receive at most units (= total number of requests, one from each facility/demand node) of flow from the source node (). The inflow to the node () represents the number of requests that can be served through this facility. Constraint (C.5) formulates the independence condition of facilities that no flow is allowed between two facility nodes. Constraint (C.6) restricts that a facility node () should not receive flow from a demand node (). Flow balance at each node (except source and sink nodes) is formulated by constraints (C.7) and (C.8). Arc () in these two constraints enforces at least one service unit to visit node () by imposing a lower bound constraint (C.9). If node is a facility, the upper bound on arc flow is (), the sum of requests from all nodes, and 1 otherwise. The response time requirement (latency bound or waiting time) is formulated by constraint (C.10). The relationship between the flow on an arc and the use of the arc is formulated by constraint (C.11) which enables the formulation of subtour elimination constraints in (C.12). The last constraint (C.13) declares the type of decision variables and their restrictions.
Conflict of Interests
The author declares that there is no conflict of interests regarding the publication of this paper.
Acknowledgment
The work described in this paper was fully supported by the Strategic Research Grant from City University of Hong Kong (Project no. 7002524).
References
 R. Aboolian, Y. Sun, and G. J. Koehler, “A locationallocation problem for a web services provider in a competitive market,” European Journal of Operational Research, vol. 194, no. 1, pp. 64–77, 2009. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 A. B. Arabani and R. Z. Farahani, “Facility location dynamics: an overview of classifications and applications,” Computers & Industrial Engineering, vol. 62, no. 1, pp. 408–420, 2012. View at: Publisher Site  Google Scholar
 R. Z. Farahani and M. Hekmatfar, Facility Location: Concepts, Models, Algorithms and Case Studies, Physica, Heidelberg, Germany, 2009.
 Z. Azarmand and E. N. Jamie, “Location allocation problem,” in Facility Location: Concepts, Models, Algorithms and Case Studies, R. Z. Farahani and M. Hekmatfar, Eds., pp. 93–109, Physica, Heidelberg, Germany, 2009. View at: Google Scholar
 R. Aboolian, O. Berman, and Z. Drezner, “Location and allocation of service units on a congested network,” IIE Transactions, vol. 40, no. 4, pp. 422–433, 2008. View at: Publisher Site  Google Scholar
 S. S. Syam, “A multiple server locationallocation model for service system design,” Computers & Operations Research, vol. 35, no. 7, pp. 2248–2265, 2008. View at: Publisher Site  Google Scholar  MathSciNet
 M. Turkensteen and A. Klose, “Demand dispersion and logistics costs in onetomany distribution systems,” European Journal of Operational Research, vol. 223, no. 2, pp. 499–507, 2012. View at: Publisher Site  Google Scholar
 T. G. Crainic, G. Perboli, S. Mancini, and R. Tadei, “Twoechelon vehicle routing problem: a satellite location analysis,” Procedia—Social and Behavioral Sciences, vol. 2, no. 3, pp. 5944–5955, 2010. View at: Publisher Site  Google Scholar
 T. G. Crainic, N. Ricciardi, and G. Storchi, “Models for evaluating and planning city logistics systems,” Transportation Science, vol. 43, no. 4, pp. 432–454, 2009. View at: Publisher Site  Google Scholar
 J. Brimberg, A. Mehrez, and G. O. Wesolowsky, “Allocation of queuing facilities using a minimax criterion,” Location Science, vol. 5, no. 2, pp. 89–101, 1997. View at: Publisher Site  Google Scholar
 O. Kariv and S. L. Hakimi, “An algorithmic approach to network location problems II: the pmedians,” SIAM Journal on Applied Mathematics, vol. 37, no. 3, pp. 539–560, 1979. View at: Publisher Site  Google Scholar
 S. Sahni and T. Gonzalez, “Pcomplete approximation problems,” Journal of the Association for Computing Machinery, vol. 23, no. 3, pp. 555–565, 1976. View at: Publisher Site  Google Scholar
 R. Jothi and B. Raghavachari, “Approximating the ktraveling repairman problem with repairtimes,” Journal of Discrete Algorithms, vol. 5, no. 2, pp. 293–303, 2007. View at: Publisher Site  Google Scholar
 I. Averbakh and O. Berman, “Routing and locationrouting pdelivery men problems on a path,” Transportation Science, vol. 28, no. 2, pp. 162–166, 1994. View at: Google Scholar
 M. Jamil, R. Batta, and D. M. Malon, “The traveling repairperson home base location problem,” Transportation Science, vol. 28, no. 2, pp. 150–161, 1994. View at: Google Scholar
 A. V. Hill, S. T. March, C. J. Nachtsheim, and M. S. Shanker, “An approximate model for field service territory planning,” IIE Transactions, vol. 24, no. 1, pp. 2–10, 1992. View at: Publisher Site  Google Scholar
 S. C. K. Chu and C. K. Y. Lin, “Manpower allocation model of job specialization,” Journal of the Operational Research Society, vol. 44, no. 10, pp. 983–989, 1993. View at: Google Scholar
 Q. Tang, G. R. Wilson, and E. Perevalov, “An approximation manpower planning model for aftersales field service support,” Computers & Operations Research, vol. 35, no. 11, pp. 3479–3488, 2008. View at: Publisher Site  Google Scholar
 N. Geroliminis, K. Kepaptsoglou, and M. G. Karlaftis, “A hybrid hypercube—genetic algorithm approach for deploying many emergency response mobile units in an urban network,” European Journal of Operational Research, vol. 210, no. 2, pp. 287–300, 2011. View at: Publisher Site  Google Scholar
 R. T. Wong, “Vehicle routing for small package delivery and pickup services,” in The Vehicle Routing Problem: Latest Advances and New Challenges, B. L. Golden, S. Raghavan, and E. A. Wasil, Eds., pp. 475–485, Springer, New York, NY, USA, 2008. View at: Google Scholar
 S. Powell, “Using linear programming to simulate service engineers,” Journal of the Operational Research Society, vol. 50, no. 12, pp. 1252–1255, 1999. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 P. Kolesar, W. Walker, and J. Hausner, “Determining the relation between fire engine travel times and travel distances in New Yor City companies,” Operations Research, vol. 23, no. 4, pp. 614–627, 1975. View at: Publisher Site  Google Scholar
 E. K. Lee, C. H. Chen, F. Pietz, and B. Benecke, “Modeling and optimizing the publichealth infrastructure for emergency response,” Interfaces, vol. 39, no. 5, pp. 476–490, 2009. View at: Publisher Site  Google Scholar
 E. K. Lee, F. Piez, and B. Benecke, “Service networks for public health and medical preparedness: medical countermeasures dispensing and largescale disaster relief efforts,” in Handbook of Operations Research for Homeland Security, J. W. Herrmann, Ed., vol. 183 of International Series in Operations Research & Management Science, pp. 167–196, 2013. View at: Google Scholar
 R. C. Larson, “A hypercube queuing model for facility location and redistricting in urban emergency services,” Computers & Operations Research, vol. 1, no. 1, pp. 67–95, 1974. View at: Publisher Site  Google Scholar
 R. C. Larson and A. R. Odoni, Urban Operations Research, Prentice Hall, Englewood Cliffs, NJ, USA, 1981, http://web.mit.edu/urban_or_book/www/book/.
 S. Lee, “The role of centrality in ambulance dispatching,” Decision Support Systems, vol. 54, no. 1, pp. 282–291, 2012. View at: Publisher Site  Google Scholar
 P. Beraldi and M. E. Bruni, “A probabilistic model applied to emergency service vehicle location,” European Journal of Operational Research, vol. 196, no. 1, pp. 323–331, 2009. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 H. Zhong, R. W. Hall, and M. Dessouky, “Territory planning and vehicle dispatching with driver learning,” Transportation Science, vol. 41, no. 1, pp. 74–89, 2007. View at: Publisher Site  Google Scholar
 L. M. Wein, “Neither snow, nor rain, nor anthrax,” The New York Times, 2008, http://www.nytimes.com/2008/10/13/opinion/13wein.html?_r=1. View at: Google Scholar
 A. Richter and S. Khan, “Pilot model: judging alternate modes of dispensing prophylaxis in Los Angeles County,” Interfaces, vol. 39, no. 3, pp. 228–240, 2009. View at: Publisher Site  Google Scholar
 N. Coskun and R. Erol, “An optimization model for locating and sizing emergency medical service stations,” Journal of Medical Systems, vol. 34, no. 1, pp. 43–49, 2010. View at: Publisher Site  Google Scholar
 M. B. Pedersen, T. G. Crainic, and O. B. G. Madsen, “Models and tabu search metaheuristics for service network design with assetbalance requirements,” Transportation Science, vol. 43, no. 2, pp. 158–177, 2009. View at: Publisher Site  Google Scholar
 A. Hoff, A. Lium, A. Løkketangen, and T. G. Crainic, “A metaheuristic for stochastic service network design,” Journal of Heuristics, vol. 16, no. 5, pp. 653–679, 2010. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 X. Li and A. G.O. Yeh, “Integration of genetic algorithms and GIS for optimal location search,” International Journal of Geographical Information Science, vol. 19, no. 5, pp. 581–601, 2005. View at: Publisher Site  Google Scholar
 J.R. Lin, S. Yan, and C. W. Lai, “International express courier routing and scheduling under uncertain demands,” Engineering Optimization, vol. 45, no. 7, pp. 881–897, 2013. View at: Publisher Site  Google Scholar
 Annual Transport Digest. Transport Department. Hong Kong, 2012, http://www.td.gov.hk/mini_site/atd/2012/eng/section5/section5_18.html.
 A. Mandle, A. Jaiswal, B. Dod, and R. Lokhande, “Taxi automation using real time adaptive scheduling,” International Journal on Recent and Innovation Trends in Computing and Communication, vol. 2, no. 3, pp. 592–594, 2014. View at: Google Scholar
 D. Bandara, M. E. Mayorga, and L. A. McLay, “Priority dispatching strategies for EMS systems,” Journal of the Operational Research Society, vol. 65, no. 4, pp. 572–587, 2014. View at: Google Scholar
 TSPLIB, RuprechtKarlsUniversität, Heidelberg, Germany, http://www.iwr.uniheidelberg.de/groups/comopt/software/TSPLIB95/.
 C. K. Y. Lin and R. C. W. Kwok, “Multiobjective metaheuristics for a locationrouting problem with multiple use of vehicles on real data and simulated data,” European Journal of Operational Research, vol. 175, no. 3, pp. 1833–1849, 2006. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 “Delivery_data,” City University of Hong Kong, Hong Kong, http://personal.cityu.edu.hk/~mslincky/Demand_distances.xls. View at: Google Scholar
 C. K. Y. Lin, “A vehicle routing problem with pickup and delivery time windows, and coordination of transportable resources,” Computers & Operations Research, vol. 38, no. 11, pp. 1596–1609, 2011. View at: Publisher Site  Google Scholar  MathSciNet
 G. M. Carter, J. M. Chaiken, and E. Ignall, “Response areas for two emergency units,” Operations Research, vol. 20, no. 3, pp. 571–594, 1972. View at: Google Scholar
Copyright
Copyright © 2014 Carrie Ka Yuk Lin. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.