1. Introduction
Because of the significant occurrences of many predictable and unpredictable large-scale disasters worldwide, regardless of various discoveries and urbanization, an efficient, implementable, and reliable evacuation planning is indispensable for saving life and supporting humanitarian relief with optimal use and equitable distribution of available resources. Among prevalent disasters, e.g., earthquakes, volcanic eruptions, landslides, floods, tsunamis, hurricanes, typhoons, chemical explosions, and terrorist attacks, the most remarkable losses are noted in earthquakes in Nepal (April 2015), Japan (March 2011), Haiti (January 2010), Chichi (Taiwan, September 1999), Bam (Iran, December 2003), Kashmir (Pakistan, October 2005), and Chile (May 1960); various tsunamis in Japan and the Indian Ocean; the major hurricanes Katrina, Rita, and Sandy in USA; and the September 11 attacks in USA. The threat of disasters always persists, e.g., there is a prediction of earthquakes of more than 8.4 in Richter scale around the capital of Nepal in the near future (Pyakurel et al. [
1]). Therefore, there is always a need for an effective emergency plan to cope with disasters worldwide, including Nepal.
Evacuating people from disastrous areas to safe places is one of the important aspect of emergency planning. Among the diversified fields (e.g., traffic simulation, fluid dynamics, control theory, variational inequalities, and network flow) of mathematical research in evacuation planning, network flow methodologies are the most efficient [
2]. An evacuation optimizer looks after a plan on evacuation network for an efficient transfer of maximum evacuees from the dangerous (sources) to safer (sinks) locations as quickly as possible [
3,
4]. An optimal shelter location and support of humanitarian logistics within these emergency scenarios are equally demanding but challenging issues. The aim of this paper is to look at the transportation planning based on strong mathematical modeling with applications, not only in emergency evacuations, but also in the heavy traffic hours of a city. A comprehensive explanation on diversified theories and applications can be found in the survey papers of Hamacher and Tjandra [
4], Cova and Johnson [
5], Altay and Green III [
6], Pascoal et al. [
7], Moriarty et al. [
8], Chen and Miller-Hooks [
9], Yusoff et al. [
10], Dhamala et al. [
11], Kotsireas et al. [
12], and the literature therein. The theoretical background needed in this paper, in particular, is given in
Section 2 and inside other sections, wherever necessary.
The evacuation network, which corresponds to a region (or a building, shopping mall, etc.), is represented by a dynamic network in which nodes represent the street intersections (or rooms), and arcs represent the connections (streets, doors, etc.) between the nodes. The hazardous locations of evacuees are termed as the source nodes and the safe locations where the evacuees are to be transferred are termed as sink nodes. The nodes and arcs have capacities. Further, each arc has a transit time or a cost associated with it. The evacuees or the vehicles carrying evacuees traveling through the network are modeled as a flow. An evacuation plan largely depends on the number of sources, number of sinks, and the parameters associated with nodes and arcs, which may be dependent on time or the amount of the flow, along with other constraints. The time variable which is continuous may be discretized. The discrete time steps approximate the computationally heavy continuous models at the cost of solution approximations. Also the constant time probably approximated by free flow speeds or certain queuing rules and constant capacity settings mostly realize the evacuation problems to be linear, at least more tractable, in contrast to the more general and realistic flow-dependent real-world evacuation scenarios.
Following the pioneers of Ford and Fulkerson [
13], with an objective to maximize the flow from a source to a sink at the end of given discrete time period, Gale [
14] shows an existence of the maximum flow from the very beginning in discrete time setting. Two pseudo-polynomial time algorithms are presented by Wilkinson [
15] and Minieka [
16] for the latter problem with constant arc transit times. An upward scaling approximation algorithm of Hoppe [
17] polynomially solves this problem within a factor of
, for every
. For the special series-parallel networks, Ruzika et al. [
18] solve this problem, applying a minimum cost circulation flow algorithm by exploiting a property that every cycle of its residual network is of non-negative length. Minieka [
16], and Hoppe and Tardos [
19] maximize the flow in priority ordering, which is important in some scenarios of evacuation planning. Burkard et al. [
20], and Hoppe and Tardos [
19] present efficient algorithms for shifting the already fixed evacuees in minimum time. However, the general multiterminal evacuation problems, with variable number of evacuees at sources, are computationally hard even with constant attributes on arcs. Likewise, the earliest arrival transshipment solutions that fulfill the specific demands at sinks by the specific supplies from sources maximizing the flow at each point of time are also not solved in polynomial time yet. The multisource single-sink (cf. Baumann and Skutella [
21]) and zero transit times, in either one source or one sink (cf. Fleischer [
22]) earliest arrival transshipment problems, have polynomial time solutions. Gross et al. [
23] propose efficient algorithms to calculate the approximate earliest arrival flows on arbitrary networks. Several works have been done with continuous time settings as well (see, Pyakurel and Dhamala [
24] for the references). Several polynomial time algorithms by natural transformations are obtained by Fleischer and Tardos [
25].
In urban road networks, the vehicles in a particular road segment are allowed to move in a specified direction only. In case of disasters, the evacuation planners discourage people to move towards risk areas from safer places. As a result, the road segments leading towards the risk areas become unoccupied and those towards safer places become overoccupied. If the direction of the traffic flow in unoccupied segments is reversed, then the vehicles moving towards the safe areas can use those segments as well. Reversing the traffic flow in a particular road segment is also known as lane reversal. The optimal lane reversal strategy makes the traffic systematic and smooth by removing the traffic jams caused, not only in different natural and human-created disasters of large scale, but also in busy office hours, special events and street demonstrations. The contraflow reconfiguration, by means of various operations research models (cf.
Section 2), heuristics, optimization techniques and simulation, reverses the usual direction of empty lanes towards sinks satisfying the given constraints that increase the value of the flow, and decrease the average time of evacuation. However, an efficient and universally acceptable solution approach that meets the macroscopic and microscopic behavioral characteristics of the evacuees (e.g., threat conditions, community context, and preparedness) is still lacking (see [
4,
26]). Because of the large size of the problem (a large number of variables and parameters involved), designing algorithms to calculate optimal solution within a desired time is challenging. Heuristics and approximation methods provide solutions within an acceptable time but the optimality of the solution is not guaranteed. A trade-off between computational costs and solution quality should always be desired when designing solution algorithms.
As the computational costs of the exact mathematical solutions for general contraflow techniques are quite high, a series of heuristic procedures are approached in literature that are computationally manageable. Kim et al. [
27] present two greedy and bottleneck heuristics for possible numerical approximate solutions to the quickest contraflow problem, and they show that at least 40% evacuation time can be reduced by reverting at most 30% arcs in their case study. They model the problem of lane reversals mathematically as an integer programming problem by means of flows on network and also prove that it is
-hard. All contraflow evacuation problems are at least harder than the corresponding problems without contraflow. We recommend Dhamala et al. [
11] and the references therein for different approaches of contraflow heuristics.
Though comparatively less, recent interest also includes analytical techniques, after Rebennack et al. [
28] solved the two-terminal maximum contraflow and quickest contraflow problems optimally in polynomial times. The earliest arrival and the maximum contraflow problems are solved with the temporally repeated solutions in Dhamala and Pyakurel [
29]. Its solution with continuous time is obtained in [
30]. The authors of [
31] solve the earliest arrival contraflow on two-terminal network in pseudo-polynomial time. They also introduce the lex-maximum dynamic contraflow problem in which flow is maximized in given priority ordering and solved with polynomial time complexity. These problems are also solved in continuous time setting by using natural transformation (cf.
Section 2.2) of flow in discrete times to continuous time intervals in [
24,
30]. With the given supplies at the sources and demands of the sink, the earliest arrival transshipment contraflow problem is modeled in discrete time [
32] and solved on multisource network with polynomial algorithm. The problem with zero transit time on arcs is also solved on multi-sink network with a polynomial time complexity. For the multiterminal network, they present approximation algorithms to solve the earliest arrival transshipment contraflow problem. The discrete solutions are extended into continuous time in [
1,
24]. The problems with similar objectives, in what is known as an abstract network, are solved in [
33].
In the present work, we propose algorithms to reverse the road segments up to the necessary capacity only, to record segments with unused capacities so that they can be used for other purposes of facilitating evacuation. Our proposed algorithms also summarize the earlier results on contraflow in compact form. To the best of our knowledge, this is the first attempt to address the issues on different partial contraflow problems with constant transit times and inflow-dependent transit times associated to the arcs. These node–arc partial contraflow models contribute in saving the unnecessary arc reversals improving the complete contraflow approaches.
The organization of this paper is as follows.
Section 2 presents the basic terminology necessary in the paper and different flow models. All the previously solved dynamic contraflow problems with constant transit time are extended in the partial contraflow configuration and solved with efficient algorithms in
Section 4, after presenting the fundamental static partial contraflow solutions in
Section 3.
Section 5 introduces the partial contraflow approach to solve the quickest flow problem with inflow-dependent transit times presenting efficient algorithms.
Section 6 presents numerical computations related to the quickest partial contraflow, with inflow-dependent transit times and taking a case of the Kathmandu road network. The paper is concluded in
Section 7.
2. Basic Terminology
An evacuation network is represented by , where V is the set of n nodes, is the set of m arcs with a set of source nodes S and that of sink nodes D. For each , we define , the set of arcs outgoing from v, and , the set of arcs incoming to v. The network is assumed to be without parallel arcs between the nodes as they can be combined to a single arc with added capacity. It is connected with m arcs, so that , and therefore . The nodes may be equipped with the initial occupancy . The predefined parameter T denotes a permissible time window within which the whole evacuation process has to be completed. It may be discretized into discrete time steps or can be considered a continuous one as .
On arcs, the upper capacity (bound) function
limits the flow rate passing along the arcs for each point in time. The transit time function
measures the time the flow units take to travel along the arcs. We frame this work with constant and inflow-dependent transit times on arcs. Smith and Cruz [
34] give various approaches of travel time estimation on arterial links, free and high ways. With inflow-dependent transit times, the transit time
is a function of inflow rate
on the arc
e at given time point
, so that at a time flow units enter an arc with the uniform speed and remain with the uniform speed traveling through this arc.
The flow rate function is defined by , where denotes the flow rate on e at time . It may be taken as an inflow, outflow, and intermediate flow rate that measure the flow at entry, exit, and intermediate points on an arc, respectively. For and constant function , the amount of flow sent at time into e arrives to its end at time . Whereas, for continuous time and constant function , the amount of flow per time unit enters at this rate e at time and proceed continuously.
One may introduce an additional parameter
on arc
e, e.g., a gain factor, to model a generalized dynamic flow when only
units of flow leave from
w at time
, by entering a unit of flow on
at time
. If the flow is not gained, practically, along any arc, then
holds for each arc
, and we call the network as a lossy network [
35], which is denoted by
.
2.1. Flow Models
For a source node,
s, and a sink node,
d, a static
s-
d flow with value
is a function
satisfying
The constraints in (2) are flow-conservation constraints and the constraints in (3) are capacity constraints. The maximum static flow problem seeks to maximize the objective (
1), and we denote the value of the maximum static flow by
. If the flow conservation constraints (2) are satisfied for each
, then corresponding flow
y is also known as a circulation. If we add an arc
with capacity
and set
, then the value of such a flow is zero, and the resulting flow is a circulation. Given a fixed flow value
and the cost
per unit of flow for each
, the minimum cost static flow problem seeks to minimize the total cost
of shifting
from
s to
d. Adding an arc
with capacity
and cost 0, the minimum cost static flow problem can be turned into a minimum cost circulation problem.
Let us assume that the arc transit times and capacities are constant over the time. With an amount of inflow
on arc
e at discrete time
that may change over the planning horizon
T, the generalized dynamic flow
for given time
T satisfies constraints (
4–6).
The generalized earliest arrival flow problem is to find a generalized dynamic flow of value
for each time unit
defined by objective function (
7). It is defined as a generalized maximum dynamic flow problem if the maximization is considered for
only:
Note that, besides the sink, no flow units remain in the dynamic network after time T. It is ensured by assuming that for all .
For the following models we assume that gain factor
. Then, the generalized dynamic flow reduces to the dynamic flow and the generalized earliest arrival flow reduces to the earliest arrival flow with objective function (
8).
Given a time horizon,
T, and and a set of terminals with a given priority order, the lexicographic maximum (lex-maximum) dynamic flow problem seeks to identify a feasible dynamic flow that maximizes the amount leaving (entering) a terminal in the given order. For a given value
(number of flow units representing evacuees), the quickest flow problem minimizes
such that the value of the dynamic flow not less than
, satisfying the constraints (
4)–(6) with equality in (5) and
.
Let
be a multiterminal network with source-supply and sink-demand vectors
and
, respectively, such that
. The multiterminal earliest arrival flow problem seeks to find the dynamic flow, so that the total supply
is sent from
S to meet the total demand
in
D with maximum value at each
. If all demands are to be fulfilled with supplies by shifting them to the sinks within given time
T, then the problem is known as a transshipment problem. The earliest arrival transshipment problem maximizes
in objective function (
9) satisfying multiterminal constraints (
4)–(6) for all time points
with
.
If the transshipment from S to D is done in the minimum time , then the problem is called quickest transshipment problem.
Let be the reverse of an arc . The residual network for a static flow y is given by , where with and with arc length for and for . The residual capacity is defined as for and for .
Given a multiterminal S-D network, we construct an extended network by adding two extra nodes: (called super-source) and (called super-sink). For each , we construct arcs with zero transit time and problem-dependent capacities.
2.2. Natural Transformation
With the continuous time settings set as , all of the above models described in the above subsection can be remodeled by replacing the summation over time with respective integrals. The amount of flow entry, , on the arcs considered above in discrete models naturally transfer to the entry flow rates in this continuous approach.
Fleischer and Tardos [
25] connect the continuous and discrete flow models by the following natural transformation, as defined in (
10), that deals with the same computational complexity to both.
where
is the amount of discrete dynamic flow that enters arc
e at time
with constant capacities on the arcs. For static flow
on arc
e, the amount of discrete dynamic flow with transit time
on arc
e is
Notice that the flow entering an arc at time arrives at w at time in discrete time, but at time in continuous time. The flow is feasible and will be same for both settings at any interval , for , .
With standard chain decomposition, the static flow y is decomposed into a set of chain flows with that satisfies . Each chain in starts at a source node and ends at a sink node using arcs in the same direction as y does. The travel time on each chain is such that . The feasible dynamic flow can be obtained by summing the dynamic flows induced by each chain flow.
A nonstandard chain decomposition of feasible y, e.g., , allows for an arc in the opposite direction also for the flow. If has transit time , then for its reverse arc . A unit of flow starting from w at time and reaching v at time cancels the unit of flow starting from v at time and reaching w at time , and thus it is equivalent to sending a negative unit of flow from v at time to w at time .
Using the concept of natural transformation discussed above, Fleischer and Tardos [
25] solved the continuous versions of maximum flow, universal dynamic flow, lexicographically maximum flow, quickest flow, and dynamic transshipment problems by solving their discrete counter parts with time-invariant attributes. The computational complexities for both approaches remain the same. The generalized dynamic cut capacity is defined to show the equivalent maximum flow solutions.
2.3. Models for Arc Reversals
Let
be an evacuation network. For
, we denote its reverse arc
by
. To solve a network flow problem with arc reversals, a common approach is to solve the corresponding problem in, what is known as, an auxiliary network. We denote the auxiliary network of
by
, in which
and an edge
in auxiliary
if
or
. While working with the auxiliary network for reconfiguration, one is allowed to redirect the edge in any direction with the modified increased capacity and same transit time in either direction. The remaining graph topology and data structures in reconfigured network are unaltered. By discarding the time factor for flow passing through the network, a static contraflow configuration will be defined analogously.
The core idea behind contraflow reconfiguration technique is to increase outbound flow with reduced time on the evacuation network. Numerous dynamic contraflow heuristics have been presented and implemented during the past few years. However, recently many analytical approaches have been investigated, and polynomial time algorithms are also presented in a few cases, though the general multiterminal problem is still
-hard because of a conflict with reverting intermediate arcs. We recommend a complete survey [
11] for details.
Example 1. Let us consider a single-source single-sink evacuation network as shown in Figure 1(i), where s is the source node and d is the sink node. The arcs, for example, and , represent the two-way road segments between nodes x and y. Each arc contains capacity and transit time (cost) associated to it. For example, arc has capacity 2 and transit time 3, that means, assuming a time unit of 5 min and a flow unit of 10 cars, a maximum of 20 cars can reach w from s in 15 min. The auxiliary network for reconfiguration is as shown in Figure 1(ii), in which the capacity of each edge is obtained by adding the capacities of and the transit time . 4. Partial Lane Reversals for Time-Invariant Attributes
This section deals with the concepts of dynamic partial contraflow and contra-transshipment problems with constant transit times and capacities on arcs. Some efficient algorithms are presented for their solutions. As the evacuation issues with dynamic environment have been categorized into different problem types, such as maximum flow, quickest flow, lexicographically maximum flow, earliest arrival flow, quickest transshipment, and earliest arrival transshipment, each has to be dealt to separately with contraflow and, thereby, partial contraflow configuration techniques. The maximum dynamic, earliest arrival, lex-maximum dynamic and quickest, dynamic partial contra-transshipment problems are abbreviated by MDPCFP, EAPCFP, LMDPCFP, QPCFP, and DPCTP, respectively.
4.1. Dynamic Contraflow Problems
As there is no algorithm to find temporally repeated flows on general
S-
D dynamic networks, an exact optimal dynamic contraflow solution for them have not been found in polynomial time yet. In particular, on the networks, like two-terminal
s-
d; priority-based
S-
D; and transshipments
S-
d,
s-
D, and
S-
D with different constraints, the optimal static flow can be decomposed into chains (paths) that are temporally repeated over the time horizon,
T, returning the temporally repeated dynamic flows in such cases. From the series of literature on analytical contraflow [
1,
24,
28,
30,
31,
32,
37], it is established that the optimal dynamic contraflow for the given network
is equivalent to the optimal dynamic flow on corresponding reconfigured network
. The input network may be a super-source super-sink added extended network if one is considering a multiterminal network, whenever a temporally repeated solution is possible.
Previous contraflow approaches do not apply the remaining arc capacities, which result after contraflow reconfiguration. In this subsection, we redefine a series of partial contraflow problems with time-invariant attributes and present appropriate efficient algorithms to solve the corresponding problems saving the unnecessary arc capacities. Once a dynamic flow is obtained, it should be subtracted from reconfigured capacities of arcs to record the maximum unused arc capacities. These algorithms have great benefit as the remaining unused arc capacities can be used for emergency vehicles and logistics. The following problem is more general, addressing respective partial contraflow problems in a compact form.
Problem 3. Given a network, , with integer inputs, the dynamic partial contraflow problem (DPCFP) with objective function is to find a dynamic S-D flow optimizing for all time with arc reversals partially.
Problem 3 is stated in an abstract form for a general objective function G without its explicit nature. As per the requirement of the specific problem, we will state it explicitly in the subsequent sections.
Applying Step 2 of Algorithm 3, any technique that computes a temporally repeated flow on reconfigured network is applicable to find an optimal solution to the corresponding contraflow for the original network . During the computation of temporally repeated flows, Step 3 removes the cycle flows, if they exist, so that the simultaneous flows in both directions are not possible. Saving of the unused capacities are recorded in Step 5. Thus, a flow is either along arc e or arc , and its value is not greater than the added arc capacities at all time units. Therefore, the condition of feasibility is satisfied by the algorithm. The optimality depends on the specific objective function.
Algorithm 3: The dynamic partial contraflow algorithm (DPCFA). |
Input: A Dynamic network with constant and symmetric transit time, i.e., Output: A dynamic partial contraflow x with the partial arc reversals
Construct the auxiliary network of for contraflow reconfiguration. Use a temporally repeated flow algorithm to solve DPCFP on reconfigured network with capacity and transit time for each . Decompose the flow y into paths and cycles and remove the flow in cycles. For each , reverse up to the capacity iff , replaced by 0 whenever . For each and , if e is reversed, and . If neither e nor is reversed, , where is the saved capacity of e.
|
4.1.1. Maximum Dynamic Contraflow
If the flow has to be maximized for given time period,
T, without considering earlier periods, then Problem 3 with the arcs permissible to be reversible only at time zero is the MDPCF problem. The objective (
8) is then
for
subject to constraints (
4)–(6).
Polynomial time algorithms to solve the
S-
D MDCFP has not been investigated yet. However, it can be solved in pseudo-polynomial time by reducing it into extended
s-
d network of its time-expanded network. The
s-
d MDCFP is polynomially solvable in discrete time [
28] and, in continuous time, [
30] reverses an arc completely whenever it is to be reversed.
Theorem 3. The s-d MDPCFP with can be solved in time in which flow decomposition and minimum cost flow problems are solved in and times, respectively.
Proof. Theorem 3 is proved in three steps. First, we show that the solution Algorithm 3 yields is feasible. Step 2 uses maximum dynamic flow algorithm of [
13]. After the removal of the positive flow in cycles in Step 3, there is a flow either along arc
e or
but never in both arcs and the flow is not greater than the modified capacities in the auxiliary network on each arc at each time unit. Second, we show the optimality. We use the temporally repeated flow algorithm of [
13] after we obtain the feasible flow that gives a maximum dynamic flow solution on reconfigured network
, which is equivalent to the maximum dynamic contraflow solution on
with the arcs reversed up to the necessary capacity in Step 4. In Step 5, we record the capacities of the arcs not used by the flow after necessary (partial) arc reversals, thereby obtaining a MDPCF solution.
The time complexity of the algorithm is dominated by the time complexity of the maximum dynamic flow algorithm of [
13] in Step 2, which is equal to the complexity of a minimum cost flow computation, and that of flow decomposition in Step 3. This completes the proof. ☐
Example 3. We compute the maximum dynamic flow on auxiliary network (cf. Figure 1(ii)) of evacuation network in Figure 1(i)) having the aforementioned capacities and transit times on each arc with the repetition of path flows computed in Example 2 within given time horizon . Using the algorithm in [13], we get the static flow y corresponding to the temporally repeated dynamic flow, which is the same as that in Figure 2(i). The temporally repeated maximum dynamic flow after partial contraflow configuration is as given in Table 1. The arc reversals and saved capacities are similar to those in Example 2.
We observe another algorithm for the partial contraflow configuration that is based on the minimum cut problem. The formation of reconfigured network is from weighted undirected network on which a minimum
s-
d cut can be obtained in
time complexity that is independent with maximum flow computations (Karger and Stein [
38]). The partial contraflow configuration can be achieved by reversing only the capacities of arcs that are equal to the minimum cut capacities. However, it is difficult to identify the used capacities of other arcs that are not contained on minimum cut set. We can say that maximum flow is equal to the minimum cut but there is not any technique developed to decompose the maximum flow value in different
s-
d paths in undirected network given a minimum cut solution. If any such technique exists, then solving partial contraflow configuration problem is not harder than finding the distribution of maximum flow value in different arcs and paths of the network.
4.1.2. Earliest Arrival Contraflow
The earliest arrival (also known as the universal maximum) partial contraflow problem (EAPCFP/UMPCFP) on the given dynamic network
is to find a dynamic
S-
D flow that is maximum for all time steps
with arc reversal capability partially. In Step 2 of Algorithm 3, the objective function (
8) is then
for all
subject to constraints (
4)–(6).
The earliest arrival contraflow problem for
s-
d series-parallel network is solved in polynomial time
, being identical with maximum flow optimal solution in which arcs are reversed only at time zero [
29,
30]. The two solutions match for this case since each cycle in the residual network has nonnegative length [
18]. However, for other general networks, as there does not exist any exact earliest arrival maximum flow solution with standard chain decomposition of [
13], the nonstandard chain decomposition of [
19] has to be applied in order to decide contraflow reconfiguration which demands arc reversals time to time, [
24,
31]. This results in a pseudo-polynomial time algorithm, using the successive shortest path algorithms as in [
15,
16]. A complication for the
s-
d earliest arrival contraflow solution arises because of the flipping requirements of intermediate arcs with respect to the time.
As the
S-
D maximum dynamic contraflow problem is
-hard, the corresponding
S-
D earliest arrival contraflow problem is also
-hard. However, the authors of [
30] obtain an approximate contraflow solution within the factor
of the optimal earliest arrival contraflow in polynomial time. For this they run, the fully polynomial time approximation algorithm of [
17] and obtain the approximate
s-
d earliest arrival contraflow in
time are used, where
.
The authors of [
39] extend the results on earliest arrival contraflow problem to the partial lane reversal reconfiguration by saving unused arc capacity. Their algorithms have similar times complexities as without contraflow.
4.1.3. Generalization of Dynamic Contraflow
Given a generalized dynamic lossy network
with integer inputs, the generalized earliest arrival partial contraflow problem (GEAPCFP) is to find a generalized maximum flow
for all
defined in Equation (
7), subject to the constraints (
4)–(6) with partial arc reversal capability at time zero. If flow is maximized for a given time horizon
T only, then the problem is a generalized maximum dynamic partial contraflow problem (GMDPCFP).
As the corresponding contraflow problems on general
S-
D network are
-hard, an additional gain factor on each arc make the partial contraflow problems also
-hard on general
S-
D lossy network, too. However, considering
s-
d lossy network, the contraflow problems can be solved computing corresponding generalized flows on the auxiliary network in pseudo-polynomial time complexity [
40]. Moreover, with the same complexity, we can solve the partial contraflow problems using Algorithm 4 saving all unused arc capacities that can be used for other purposes.
There are different factors that make the flow to be lost during evacuation process. However, we consider a special case in which it is assumed that in each time unit the same percentage of the remaining flow value is lost. Thus, we consider a special case for some constant .
In the reconfigured network, we compute a maximum flow by calculating flow along shortest s-d paths, augmenting this flow, and repeating the process successively until no s-d path exists in the residual network. Then, such a maximum flow constructs an optimal maximum dynamic flow in pseudo-polynomial time with the standard temporally repeated flow technique in time-expanded network.
Algorithm 4: The generalized dynamic partial contraflow algorithm (GDPCFA). |
Input: Given a lossy network with integer inputs Output: The resulting flow is GMDPCF and GEAPCF with the arc reversals by saving unused arc capacities
Compute the generalized maximum dynamic contraflow and generalized earliest arrival contraflow on with respective and calculated in Step 1 of Algorithm 3, and with additional gain factor using algorithms of [ 40, 41]. Let y be the corresponding flow. Reverse up to the capacity iff , replaced by 0 whenever . For each , if e is reversed, and . If neither e nor is reversed, , where is the saved capacity of e.
|
Theorem 4. The generalized maximum dynamic partial contraflow problem (GMDPCFP) can be solved with pseudo-polynomial time complexity.
Proof. The highest gain path is computed in
time, in which transit time
is considered as cost function. In auxiliary network
the generalized maximum flow using the highest gain path is computed by a standard maximum flow algorithm. For given time horizon
T, there are at most
T iteration, i.e., a maximum flow is computed at each iterations in
, and thus time complexity is
[
41]. As Steps 2 and 3 are solved in linear time, the complexity of Algorithm 4 is dominated by Step 1. Therefore, the GMDPCFP is solved in
time complexity. Moreover, the GMDPCF solution has the earliest arrival property maximizing the flow at each point of time and thus, the GEAPCFP is also solved in the same complexity. ☐
4.1.4. Lexicographically Maximum Dynamic Contraflow
With given priority ordering at terminals of the dynamic network , the LMDPCFP is to find a lexicographically maximum dynamic flow at each priority terminal sets with arc reversal capability partially at any time point.
Fixing the supplies and demands at sources and sinks, the LMDPCFP problem has been solved with polynomial time complexity [
24,
31]. However, it is also solvable for unknown supplies and demands on terminals with the same complexity, because there is a priority ordering in terminals but not in supplies and demands. In the reconfigured network
of Algorithm 3, if we calculate the minimum cost flow in Step 2 at each iteration as in [
19], the LMDPCF solution is obtained after
(number of terminals) iterations within time horizon
T by saving unused arc capacities. However, it uses so-called nonstandard flow decomposition in which backward arcs are allowed. The consequence is Theorem 5.
Theorem 5. The LMDPCFP with partial reversals of arc capacities can be solved in time, where is the time complexity of minimum cost flow solution.
4.1.5. Quickest Contraflow Problem
Problem 4. For a given dynamic network with integer inputs and fixed flow value , the quickest partial contraflow problem (QPCFP) is to find a minimum time T to transship the flow value from the sources S to the sinks D with arc reversal capability partially.
The authors of [
24,
28,
30,
37] investigate the
s-
d network quickest contraflow problem and
S-
D network quickest contra-transshipment problem and present polynomial-time algorithms for their solution. On the
S-
D network, the quickest contraflow problem is not easier than
3-SAT and
PARTITION [
28]. However, for an
s-
d network, they present a strongly polynomial time algorithm with discrete
based on the parametric search technique of Megiddo [
42] and Burkard et al. [
20]). They find an upper bound for the quickest time by computing
s-
d paths in polynomial time and then use parametric search to find the minimum time before which given flow value is sent to the sink resulting in a strongly polynomial time complexity of
. In same time complexity, the quickest contraflow problem is solved in continuous times in [
30].
Pyakurel et al. [
37] presented the first polynomial algorithm with a time-complexity of a minimum cost flow algorithm to solve the
s-
d quickest contraflow problem. The
s-
d quickest contraflow solution has been computed by solving the parametric minimum cost flow problem using the cost scaling algorithm of Lin and Jaillet [
43]. It takes
time to solve this problem, where
is the maximum transit time over all arcs. All the algorithms are presented with complete contraflow configuration.
Replacing the cost scaling algorithm of Lin and Jaillet [
43], if we use the cancel and tighten algorithm of Saho and Shigeno [
44] in Step 2 of Algorithm 3 that computes the quickest flow by solving the parametric minimum cost flow problem in strongly polynomial time complexity, we get what is stated in Theorem 6 without detailed proof. With this, we not only improve the complexity of algorithm to solve the
s-
d quickest contraflow problem, but also reverse necessary parts of the road segments saving all unused arc capacities, obtaining the QPCF solution in strongly polynomial time.
Theorem 6. The quickest contraflow problem on s-d network can be solved in time complexity with partial reversals of arc capacities.
4.2. Dynamic Contra-Transshipment Problems
Problem 5. Given a network with integer inputs, the dynamic partial contra-transshipment problem (DPCTP) with objective function is to find a feasible dynamic S-D flow for that fulfills the supply-demand shipments with partial arc reversals.
Problem 5 is stated in an abstract form for a general objective function G without its explicit nature. As per the requirement of the specific problem, we will state it explicitly in the subsequent sections.
If the fixed source-sink supply-demand amounts should be shifted within given time horizon T by maximizing G at every time point from the beginning with partial arc reversals, then the problem is earliest arrival partial contra-transshipment (EAPCTP).
The authors of [
1,
24,
32] investigate the earliest arrival contra-transshipment problem and present polynomial time algorithms on multisource or multi-sink networks for specific arc transit times. Moreover, a pseudo-polynomial time algorithm has been presented and its approximation solution is computed for arbitrary transit times on each arc. If the transit time of each arc is zero, then the approximation solution is obtained in polynomial time. For an urban evacuation scenarios including life boats or pick-up bus stations, the concept of zero transit time is very important and applicable [
45].
Based on the previous results from the literature, the EAPCTP can be solved in different conditions using Algorithm 5 in which all unused arc capacities are saved in contraflow configuration. However, this problem is not solved on general S-D network yet. For the S-d network with arbitrary arc transit times, a solution of the earliest arrival contra-transshipment problem can be found in polynomial time reversing the arc in the time intervals whenever necessary. Moreover, the algorithm records all unused arc capacities.
By constructing extended network of reconfigured
S-
d network, we can compute with super-source
the
-
d minimum cost flow circulations according to [
21] and can save arc capacity using Step 3 of Algorithm 5 as follows.
First, the S-d network is converted into extended network -d network, making all nodes in S intermediate and the total of the supply is assigned to . Moreover, node is connected from d with a dummy arc having infinite capacity. On -d auxiliary network, we obtain a feasible dynamic flow by computing the minimum cost circulation to the dynamic flow on S-d auxiliary network, where units of flow are being sent from the sources in S to d in time T. In this procedure, to overcome from the violation of individual supplies at the source nodes, an earliest arrival flow pattern , i.e., the maximum flow in which for every , is defined on -d network. If , for all , the process is complete. The pattern is obtained polynomially in the input size plus the number of breakpoints. For given pattern with k breakpoints on the S-d network , an earliest arrival transshipment can be obtained by computing a transshipment dynamic flow in -d network with k additional nodes and arcs. Thus, the obtained earliest arrival transshipment is equivalent to the earliest arrival contra-transshipment on S-d network . Moreover, we can save all the unused arc capacities within the same complexity.
Algorithm 5: The dynamic partial contra-transshipment algorithm (DPCTPA). |
Input: A dynamic network with constant and symmetric transit times, i.e., Output: A dynamic contra-transshipment with the partial arc reversals
Construct the reconfigured auxiliary network of for contraflow reconfiguration. Use a respective transshipment algorithm to solve DPCTP on reconfigured network with capacity and transit time for each . Let y be the corresponding flow. For each and reverse up to the capacity iff , replaced by 0 whenever . For each and , if e is reversed, and . If neither e nor is reversed, , where is the saved capacity of e.
|
Theorem 7. On the S-d network, the EAPCTP can be solved in polynomial time in the input plus output size.
If the network is
s-
D with arbitrary transit times, its solution does not exist, because there is always conflict of which
s-
D path should be used first to make earliest possible flows. However, if transit times are assumed to be zero, every
s-
D path has same length yielding optimal earliest arrival contra-transshipment solution in polynomial time. Different networks can be categorized as in [
45], wherein the
s-
D network EAPCTP can be solved polynomially using Algorithm 5 with reversing the partial capacities of arcs.
Theorem 8. The EAPCTP problem can be solved polynomially on multi-sink networks with transit time zero on each arc, saving the unused arc capacities.
Even with the zero transit times, for the S-D network, an earliest arrival transshipment solution is not possible. Consider a network with two sources, and ; two sinks, and ; and arcs , and . Each source and sink have supply 2 and demand 2, and each arc has unit capacity. If we use all paths at time zero, we can transship three units of flows. But leaving the path - empty, we can transship only two units of flow at time zero violating the maximality at every time point.
Thus, we investigate for an approximate solution for the
S-
D network earliest arrival partial contra-transshipment problem. For the solution, the reconfigured
S-
D transshipment network is transformed into time-expanded network. Then, the extended time-expanded network is constructed adding supper source
and super sink
with enough time bound,
T, in which we can apply the algorithm of Gross et al. [
23] that computes 2-value approximate earliest arrival transshipment solution. The optimal earliest arrival transshipment solution is bounded by 2 times the earliest arrival transshipment solution, called the 2-value approximate earliest arrival transshipment. It is equivalent to the 2-value approximate earliest arrival contra-transshipment on given network with arbitrary transit time on each arc. As it works on a time-expanded network, its time complexity is pseudo-polynomial. However, if the transit time is reduced to be zero, polynomial time 2-value approximation EAPCT can be obtained using the algorithm in [
46] on Step 2 of Algorithm 5, thereby reversing the necessary parts of the segments and saving unused arc capacities in Steps 4 and 5.
Theorem 9. The 2-value approximated EAPCT on S-D network can be solved efficiently by saving all unused arc capacities of arcs.
6. Case Illustration
To illustrate some computational results, we consider Kathmandu road network containing major road sections (cf.
Figure 5) as an evacuation network
N with
and
. The transit time (which we consider as the free flow transit time) in each road segment is as provided by Google Maps, and the integer capacity is assumed to be between 1 to 4 flow units per second according to the width of the segment. Related data are given in
Appendix A (
Table A1 and
Table A2).
For the purpose of calculating inflow-dependent transit time on each arc
e, we consider the following two functions given in [
48] and present an analysis corresponding to each of them in parallel.
BPR function, developed by US Bureau of Public Roads:
As an usual practice, we take .
In our computations, we take .
Given the number of flow units
to be evacuated, to find the quickest flow allowing (partial) arc reversal, we construct the auxiliary network of the evacuation network. To solve the problem with the transit time depending on the inflow on each arc, we construct the bow graph of the auxiliary network as described in
Section 5.
To construct the bow graph, measuring
in flow units per second and
in seconds, we consider the transit time function as the step function
where
represents the least integer greater than or equal to
and
is the value of
rounded to the nearest integer. As an example, the step function representation of a function on an arc with the free flow transit time 120 s and capacity four units of flow per second is given in
Figure 6.
We find the static flow corresponding to the quickest flow in the bow graph, and we push the flow to the slowest arc (see
Section 5) to find the approximate dynamic flow corresponding to the quickest flow. To compare the quickest time
in the bow graph and its approximate value
, we consider
between 1 to 10,000 with a gap of 500. The results are shown in
Figure 7. We find the maximum value of
to be
in case of BPR function and
in case of Davidson’s function.
We compare the quickest times before and after allowing partial arc reversal in
Figure 8. For
as small as 500, the quickest time before allowing (partial) arc reversal using the BPR function is approximately 29.5 min; whereas, after allowing arc reversal, it is 27.6 min (i.e., approximately 93.5% of the time before allowing arc reversal). With the increase in the value of
, the gap increases. For
as large as 100,000, the value after allowing arc reversal is 141.7 min, 57.6% of the value before allowing arc reversal which is 246.1 min. The quickest times for some values of
before and after allowing arc reversal are listed in
Table 2.
The number of arcs reversed (partially) for some values of
are given in
Table 3. The observations show that increasing
beyond a sufficient large value does not increase the number of arcs reversed beyond some fixed value (e.g., 29 in this case).
The links used for the quickest flow corresponding to
100,000 allowing partial arc reversal (using BPR function and Davidson’s function) are depicted in
Figure 9, with appropriate direction of the flow. The road segments which need to be reversed fully are (1, Source), (12, Source), (18, Source), (27, Source), (2, 1), (13, 12), (14, 13). (15, 14). (5, 4), (7, 6), (Sink, 8), (17, 16), (16, 15), (Sink, 7), (Sink, 40). The segments which are to be reversed partially are listed in
Table 4.
We also compare the quickest times with inflow-dependent transit time on arcs against the quickest times with constant transit time on arcs. For the purpose, we consider three types of constant transit time for each :
- (i)
, the upper bound on the step function represent of .
- (ii)
, the average of the step function values.
- (iii)
the free flow transit time.
It is observed, in the network considered, that the quickest times corresponding to the constant time on each arc as the average of the corresponding step function are very close to the quickest time with inflow-dependent transit time (cf.
Figure 10).
7. Conclusions
Highlighting the overall pros and cons of the complete contraflow models and algorithms, a new and more relevant approach—a partial lane reversal strategy—has been introduced in this paper. Using this approach, we can send maximum evacuees in minimum evacuation time recording all unused capacities of the lanes for other crucial emergency and logistic supports for the evacuees with partial reversals of lane capacities. The static partial contraflow problems and the dynamic partial contraflow problems including, the maximum dynamic, the earliest arrival, quickest, lex-maximum dynamic, generalized universally maximum, and partial contra-transshipment problems, have been solved with efficient algorithms. The maximum dynamic and earliest arrival contraflow problems are generalized on lossy networks with partial contraflow reconfiguration. Polynomial time algorithms to solve these problems with constant transit time on each arc have been proposed.
Moreover, the partial contraflow models with variable transit time on each arc have been introduced for the first time. For the inflow-dependent transit times on each arc, an algorithm with strongly polynomial time complexity has been presented that computes an approximate solution to the two terminal quickest contraflow problem with partial lane reversals, which is substantiated by numerical computations considering a case of Kathmandu road network as an evacuation network. The algorithms related to static flow are useful when one is interested to find the maximum rate of flow (evacuees) that can reach the sink(s). Within a specified time, if the maximum number of evacuees have to be evacuated, algorithms related to maximum dynamic flow are useful. The algorithms related to quickest flow are useful to identify the minimum time to evacuate a known number of evacuees.
To the best of our knowledge, the problems investigated in this work are conducted for the first time in the partial contraflow approach. Although these models provide information about the parts of the road segments not used by evacuees, they do not guarantee the existence of such a path between given nodes which may be required for movement of facilities from a node towards sources. As we have investigated only a single-source single-sink model with variable attributes to identify the quickest time, we are interested to extend these contraflow and partial contraflow models and algorithms to solve other network flow over time problems with variable attributes. In addition, we intend to implement the results for supporting logistics in emergencies using the partial contraflow techniques.