Next Article in Journal
Exploring the Antecedents of Cruisers’ Destination Loyalty: Cognitive Destination Image and Cruisers’ Satisfaction
Next Article in Special Issue
Generalization Second Order Macroscopic Traffic Models via Relative Velocity of the Congestion Propagation
Previous Article in Journal
Tsallis Log-Scale-Location Models. Moments, Gini Index and Some Stochastic Orders
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Finding Equilibria in the Traffic Assignment Problem with Primal-Dual Gradient Methods for Stable Dynamics Model and Beckmann Model

by
Meruza Kubentayeva
1,* and
Alexander Gasnikov
1,2,3
1
Institute for Information Transmission Problems, RAS, Bolshoy Karetny Per. 19, Build.1, 127051 Moscow, Russia
2
Moscow Institute of Physics and Technology, 9 Institutskiy Per., Dolgoprudny, 141701 Moscow Region, Russia
3
Higher School of Economics, 20 Myasnitskaya Ulitsa, 101000 Moscow, Russia
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(11), 1217; https://doi.org/10.3390/math9111217
Submission received: 6 May 2021 / Revised: 22 May 2021 / Accepted: 24 May 2021 / Published: 27 May 2021

Abstract

:
In this paper, we consider the application of several gradient methods to the traffic assignment problem: we search equilibria in the stable dynamics model (Nesterov and De Palma, 2003) and the Beckmann model. Unlike the celebrated Frank–Wolfe algorithm widely used for the Beckmann model, these gradients methods solve the dual problem and then reconstruct a solution to the primal one. We deal with the universal gradient method, the universal method of similar triangles, and the method of weighted dual averages and estimate their complexity for the problem. Due to the primal-dual nature of these methods, we use a duality gap in a stopping criterion. In particular, we present a novel way to reconstruct admissible flows in the stable dynamics model, which provides us with a computable duality gap.

1. Introduction

The Beckmann model for searching static traffic equilibria in road networks is among the most widely used models by transportation planners [1,2]. The equilibria found are practical for evaluating the network efficiency and distribution of business centers and residential areas, and establishing urban development plans, etc. This model introduces a cost function on every link of a transportation network, which defines a dependence of the travel cost on the flow along the link. In practice, the BPR functions are usually employed [3]:
τ e ( f e ) = t ¯ e 1 + ρ f e f ¯ e 1 μ ,
where t ¯ e are free flow times, and  f ¯ e are road capacities of a given network’s link e. We take these functions with parameters ρ = 0.15 and μ = 0.25 .
Nesterov and de Palma [4] proposed an alternative model called the stable dynamics model, which takes an intermediate place between static and dynamic network assignment models. Namely, its equilibrium can be interpreted as the stationary regime of some dynamic process. Its key assumption is that we no longer introduce a complex dependence of the travel cost on the flow (as in the standard static models) but only pose capacity constraints, i.e., the flow value on each link imposes the feasible set of travel times
τ e ( f e ) = t ¯ e , 0 f e < f ¯ e , t ¯ e , , f e = f ¯ e , + , f e > f ¯ e .
Unlike in the Beckmann model, there is no one-to-one correspondence between equilibrium travel times and flows on the links of the network. We can illustrate the difference on a simple example of two parallel routes (Figure 1).
Let the input flow take values 1000, 2000, and 3000 veh/h. For the stable dynamics model, in the first and second cases, all drivers choose the upper route; the equilibrium travel time simply equals the upper route’s free flow time (0.5 h) in the first case and varies from 0.5 to 1 h (according to the model) in the second. In the third case, the input flow exceeds the upper route’s capacity, so the upper route’s flow is 2000 veh/h, the lower one is 1000 veh/h, and the equilibrium travel time is 1 h. All these equilibria can be interpreted as stationary regimes of some dynamic processes, e.g., the last case can be viewed as the result of the queue at the beginning of the upper route (since this route’s capacity is smaller than the input flow) created by drivers who wanted to take this route until the waiting time plus the route’s travel time reached the lower route’s travel time [4]. In the Beckmann model, equilibria are as follows: for all three cases, only the upper route is used, and the equilibrium travel times are approximately 0.5, 0.6, and 0.9 h, respectively. Chudak, Dos Santos Eleuterio, and Nesterov [5] conducted a detailed comparison—for large and small networks—of equilibria in these two models.
In the Beckmann model, searching equilibria reduces to minimization of a potential function. One of the most popular and effective approaches to solve this problem numerically is the famous Frank–Wolfe method [6,7] as well as its numerous modifications [8,9,10,11].
In the case of the stable dynamics model, one cannot directly apply the Frank–Wolfe method. However, an equilibrium can be found as a solution of a pair of primal and dual optimization problems. The same holds also for the Beckmann model, so in both cases we can apply primal-dual (sub)gradient methods.
In this work, we compare several primal-dual gradient methods for searching equilibria in both the Beckmann and the stable dynamics models, namely, the universal gradient method (UGM) [12], the universal method of similar triangles (UMST) [13], and the method of weighted dual averages (WDA) [14]. The main advantage of the above universal methods is an automatic adjustment to a local (Hölder) smoothness of a minimized function, which is especially important since the dual problems we are dealing with are essentially non-smooth. Due to the primal-dual nature of these methods, one can use an adaptive stopping criterion guaranteeing required accuracy.
The main contributions of this paper include the following:
  • We propose a novel way to reconstruct admissible flows (i.e., meeting the capacity constraints and induced by flows on the paths) in the stable dynamics model and a novel computable duality gap, which can be used in a stopping criterion.
  • We provide theoretical upper bounds on the complexity of searching equilibria by the considered algorithms: UMST, UGD, and WDA.
  • We conducted numerical experiments comparing these algorithms on the Anaheim transportation network—the source code is available for use and can be found in [15].
The paper is organized as follows. In Section 2, we give a problem statement and define equilibria in the Beckmann and the stable dynamics models and corresponding optimization problems. Section 3 is devoted to the complexity analysis of UGM, UMST, and WDA. We show that the number of iterations required to obtain an ε -solution of primal and dual problems is O ( 1 / ε 2 ) for UGM and UMST. In Section 4, results of experiments on the Anaheim transportation network are presented. Finally, some conclusions are drawn in Section 5.

2. Problem Statement

Let the urban road network be represented by a directed graph G = ( V , E ) , where vertices V correspond to intersections or centroids [16] and edges E correspond to roads, respectively. Suppose we are given the travel demands: namely, let d w (veh/h) be a trip rate for an origin–destination pair w from the set O D { w = ( i , j ) : i O , j D } . Here, O V is the set of all possible origins of trips, and  D V is the set of destination nodes. For OD pair w = ( i , j ) denote by P w the set of all simple paths from i to j. Respectively, P = w O D P w is the set of all possible routes for all OD pairs. Agents traveling from node i to node j are distributed among paths from P w , i.e., for any p P w there is a flow x p R + along the path p, and  p P w x p = d w . Flows from vertices from the set O to vertices from the set D create the traffic in the entire network G, which can be represented by an element of
X = x R + | P | : p P w x p = d w , w O D .
Note that the dimension of X can be extremely large: e.g., for n × n Manhattan network log | P | = Ω ( n ) . To describe a state of the network, we do not need to know an entire vector x but only flows on arcs:
f e ( x ) = p P δ e p x p for e E ,
where δ e p = 1 { e p } . Let us introduce a matrix Θ such that Θ e , p = δ e p for e E , p P , so in vector notation we have f = Θ x . To describe an equilibrium we use both path- and link-based notations ( x , t ) or ( f , t ) .
  • Beckmann model.
One of the key ideas behind the Beckmann model is that the cost (e.g., travel time, gas expenses) of passing a link e is the same for all agents and depends solely on the flow f e along it. In what follows, we denote this cost for a given flow f e by t e = τ e ( f e ) . Another essential point is a behavioral assumption on agents called the first Wardrop’s principle: we suppose that each of them knows the state of the whole network and chooses a path p minimizing the total cost
T p ( t ) = e p t e .
The cost functions are supposed to be continuous, non-decreasing, and non-negative. Then ( x * , t * ) , where t * = ( t e * ) e E , is an equilibrium state, i.e., it satisfies conditions
t e * = τ e ( f e * ) , where f * = Θ x * , x p w * > 0 T p w ( t * ) = T w ( t * ) = min p P w T p ( t * ) ,
if and only if x * is a minimum of the potential function:
Ψ ( x ) = e E 0 f e τ e ( z ) d z σ e ( f e ) min f = Θ x , x X Ψ ( f ) = e E σ e ( f e ) min f = Θ x : x X ,
and t e * = τ e ( f e * ) [1].
Another way to find an equilibrium numerically is by solving a dual problem. According to Theorem 4 from [4], we can construct it in the following way:
min f = Θ x : x X Ψ ( f ) = min x X , f Ψ ( f ) + sup t R | E | t , Θ x f = sup t R | E | min x X , f Ψ ( f ) + t , Θ x f = sup t R | E | e E max f e { t e f e σ e ( f e ) } + min x X p e E t e δ e p x p = max t dom σ * e E σ e * ( t e ) w O D d w T w ( t ) = min t t ¯ Q ( t ) ,
where
σ e * ( t e ) = sup f e 0 { t e f e σ e ( f e ) } = f ¯ e t e t ¯ e t ¯ e ρ μ t e t ¯ e 1 + μ
is the conjugate function of σ e ( f e ) , e E . Finally, we obtain the dual problem, the solution of which is t * :
Q ( t ) = w O D d w T w ( t ) + e E σ e * ( t e ) min t t ¯ .
When we search for the solution to this problem numerically, on every step of an applied method, we can reconstruct primal variable f from the current dual variable t: f w O D d w T w ( t ) (see Section 3.1). Then we can use the duality gap, which is always nonnegative, for the estimation of the method’s accuracy:
Δ ( f , t ) = Ψ ( f ) + Q ( t ) .
It vanishes only at the equilibrium ( f * , t * ) .
  • Stable dynamics model [4].
An equilibrium state ( x * , t * ) of the stable dynamics model satisfies the next conditions:
t e * τ e ( f e * ) , x p w * > 0 T p w ( t * ) = T w ( t * ) ,
where τ ( f ) is defined earlier by (2). The above formula can be reformulated in terms of an optimization problem:
x * = arg min x X w O D p P w x p T p ( t * ) = arg min x X e E t e * f e ( x ) = arg min x X e E [ t e * f e ( x ) ( t e * t ¯ e ) f ¯ e ̲ ] ,
t e * τ e ( f e * ) t e * = arg max t e t ¯ e t e ( f e * f ¯ e ) = arg max t e t ¯ e [ t e ( f e * f ¯ e ) + t ¯ e f ¯ e ̲ ] .
Here, we add underlined constant terms to show that the pair ( f * , t * ) is an equilibrium if and only if it is a solution of the saddle-point problem
e E [ t e f e ( t e t ¯ e ) f ¯ e ] min f = Θ x : x X max t e t ¯ e ,
where its primal problem is
Ψ ( x ) = sup t e t ¯ e e E [ t e f e ( t e t ¯ e ) f ¯ e ] = e E t ¯ e f e + e E sup t e t ¯ e ( t e t ¯ e ) ( f e f ¯ e ) min f = Θ x : x X Ψ ( f ) = e E f e t ¯ e min f = Θ x : x X , f e f ¯ e ,
and its dual problem is
Q ( t ) = inf f = Θ x : x X e E [ t e f e ( t e t ¯ e ) f ¯ e ] = w O D d w T w ( t ) + t t ¯ , f ¯ min t e t ¯ e .
In contrast with the Beckmann model, the equilibrium state in the stable dynamics model is defined by pair ( f * , t * ) (in particular, it differs from the system optimum ( f * , t ¯ ) in the model only by the time value).

3. Numerical Methods

We have the following objective functions
  • The stable dynamics model:
    Q ( t ) = w O D d w T w ( t ) Φ ( t ) + t t ¯ , f ¯ h ( t ) ,
  • The Beckmann model:
    Q ( t ) = w O D d w T w ( t ) Φ ( t ) + e E f ¯ e t e t ¯ e t ¯ e ρ μ t e t ¯ e 1 + μ h ( t ) .
In both cases, it has the form
Q ( t ) = Φ ( t ) + h ( t ) min t t ¯ .
The optimization problem (4) is convex, non-smooth, and composite. We use all these properties to identify the best optimization method to solve the considered problem.

3.1. Subgradient

In our research, we consider first-order methods, i.e., they require a subgradient of Φ ( t ) , the properties and effective computation of which we discuss in this section.
To get the subdifferential Φ ( t ) , let us re-write Φ ( t ) in the following way:
Φ ( t ) = w O D d w T w ( t ) = w O D d w min p P w t , a p ,
where the vector a p = ( δ e p ) e E encodes a path p. Obviously, the shortest path may not be unique. Using the rules of subgradient calculus [17] we get the following expression:
Φ ( t ) = w O D d w min p P w t , a p = w O D d w Conv { a p : p P w , T p ( t ) = T w ( t ) } ,
i.e., the subdifferential Φ ( t ) is a sum of convex hulls of binary vectors that encode the shortest length paths. An important consequence is that for any t 1 , t 2 R + | E | and Φ ( t 1 ) Φ ( t 1 ) , Φ ( t 2 ) Φ ( t 2 ) , the following bound holds:
Φ ( t 1 ) Φ ( t 2 ) 2 M = 2 H w O D d w ,
where H is the diameter of the graph G.
Note that any element from the set Φ ( t ) has the form Φ ( t ) = f , where f = Θ x is a flow distribution on links induced by x X concentrated on the shortest paths for given times t (and vice versa: any such f corresponds to a subgradient of Φ ( t ) ).
In practice, the calculation of flows f is the most expensive part, since we have to find the shortest paths for all pairs w O D . We use the following Algorithm 1. We use Dijkstra’s Algorithm [18] to find the shortest paths in line 3, which runs in O ( | E | + | V | log | V | ) time; finding the traversal order with topological sort (Section 22.4 in [19]) and further flows aggregation have linear performance O ( | V | ) . Hence, the total complexity of Algorithm 1 is O | O | ( | E | + | V | log | V | ) . When the transportation network is an (almost) planar graph or another sparse graph, | E | = O ( | V | ) and the complexity is O ( | O | · | V | log | V | ) . Moreover, flows reconstruction for every source o O can be computed in parallel, and Dijkstra’s algorithm can also be parallelized and has efficient implementations [20,21].
Algorithm 1 Flows reconstruction.
Input: times t
 1:
f 0 | E | {flows on edges}
 2:
for origin o in O do
 3:
 Get a shortest-path tree T o from o to all destinations in D with weights t
 4:
traversal _ order TopologicalSort ( T o ) {sorting from furthest to closest vertices}
 5:
f out 0 | V | {total output flow from each vertex}
 6:
f out [ v ] d w for w = ( o , v ) O D
 7:
for v in traversal _ order  do
 8:
  Get predecessor p of v in T o
 9:
   e ( p , v )
 10:
   f [ e ] f [ e ] + f out [ v ]
 11:
   f out [ p ] f out [ p ] + f out [ v ]
 12:
end for
 13:
end for
 14:
return flows f

3.2. Reconstruction of Admissible Flows in SD Model

For given times t considered, Algorithm 1 reconstructs feasible flows f, i.e., f = Θ x for some x X . These flows meet all the constraints in the Beckmann model, but they can violate the capacity constraints in the stable dynamics model. In the latter case, an additional step is required to obtain admissible flows from f. Note that we could instead find flows that meet capacity constraints first (Theorem 8 from [4]), but to reconstruct feasible flows from them is a more complex problem.
Suppose we are given some flows g = Θ x such that
ξ = 1 max e E g e / f ¯ e > 0 .
Then for any f = Θ x we can construct admissible flows π ( f ) in the following way: let η = max e E f e / f ¯ e 1 , then
π ( f ) = f , η 0 , ξ f + η g ξ + η , η > 0 .
In practice, we propose the following procedure to find admissible flows g: run some optimization method (e.g., UGM) for a small number of iterations for the same problem but with decreased capacities: 1 2 f ¯ instead of f ¯ ; if obtained feasible flows f ^ N satisfy f ^ N 3 4 f ¯ , then take g = f ^ N ; otherwise, run it again with capacities 3 4 f ¯ and check f ^ N 7 8 f ¯ , etc.
  • Stopping criterion.
The stopping criterion we use for the stable dynamics model is based on a duality gap
Q ( t ^ N ) + Ψ ( π ( f ^ N ) ) ε ,
where f ^ N Θ x : x X , t ^ N t ¯ are estimates of an equilibrium ( f * , t * ) after N iterations of the applied method. Note that here the duality gap with f ^ N is not applicable.

3.3. Universal Gradient Method

The method for solving non-smooth problems with smooth techniques was proposed by Nesterov [12] and was called the universal gradient method. The pseudocode of UGM for the considered problem (4) is provided in Algorithm 2. Here, the euclidean prox-structure is used. Note that we did not specify the stopping criterion as it can be different for different models.
Algorithm 2 Universal gradient method.
Input: L 0 > 0 , accuracy ε > 0
 1:
Set t 0 t ¯ , k 0
 2:
repeat
 3:
L k + 1 L k / 2
 4:
while true do
 5:
t k + 1 arg min t dom h Φ ( t k ) , t t k + h ( t ) + L k + 1 t t k 2 2 2
 6:
if Φ ( t k + 1 ) Φ ( t k ) + Φ ( t k ) , t k + 1 t k + L k + 1 t k + 1 t k 2 2 2 + ε 2 then
 7:
  break
 8:
else
 9:
   L k + 1 2 L k + 1
 10:
end if
 11:
end while
 12:
k k + 1
 13:
until Stopping criterion is fulfilled
Now let us define
f ^ N = 1 S N k = 0 N 1 Φ ( t k ) L k + 1 , t ^ N = 1 S N k = 1 N t k L k , S N = k = 1 N 1 L k ,
where L k are the estimates of the local Lipschitz constant in UGM and UMST methods.
Convergence of the UGM was proved in [12] and is summarized in the following lemma and theorem. Appendix A is the proofs for UGM.
Lemma 1.
After N iterations of UGM for the stable dynamics model, it holds that
Q ( t ^ N ) Q ( t * ) R 2 S N + ε 2 ,
0 Q ( t ^ N ) + Ψ ( f ^ N ) + t * t ¯ , ( f ^ N f ¯ ) + R 2 S N + ε 2 ,
( f ^ N f ¯ ) + 2 4 R S N + 2 ε S N ,
where f ^ N , t ^ N , and  S N are defined by (8), and  R = t * t ¯ 2 is the distance from the starting point to a solution.
Theorem 1.
Let L 0 M 2 ε , where M comes from (5). Then, after at most
N Q = 2 R M ε 2
iterations of UGM for the stable dynamics model, it holds that Q ( t ^ N ) Q ( t * ) ε . Moreover, the stopping criterion (7) is fulfilled after at most
N s t o p = O R M ε 2 max 1 , g f * , t ¯ ξ R min e f ¯ e 2
iterations, where ξ comes from (6).
Now we provide results on the rate of convergence for the Beckmann model. The stopping criterion in this case is the following:
Q ( t ^ N ) + Ψ ( f ^ N ) ε .
Lemma 2.
After N iterations of UGM for the Beckmann model, it holds that
Q ( t ^ N ) Q ( t * ) R 2 S N + ε 2 , 0 Q ( t ^ N ) + Ψ ( f ^ N ) τ ( f ^ N ) t ¯ 2 2 S N + ε 2 ,
where f ^ N , t ^ N , S N are defined by (8), and  R = t * t ¯ 2
Theorem 2.
Let L 0 M 2 ε , where M comes from (5). Then after at most
N Q = 2 R M ε 2
iterations of UGM for the Beckmann model, it holds that Q ( t ^ N ) Q ( t * ) ε . Moreover, the stopping criterion (14) is fulfilled after at most
N s t o p = 2 R ˜ M ε 2
iterations, where
R ˜ 2 = ρ 2 e E t ¯ e 2 f ¯ e 2 / μ w O D d w 2 / μ .

3.4. Universal Method of Similar Triangles

Let us introduce the following notations:
ϕ 0 ( t ) = 1 2 t t 0 2 2 ,
ϕ k + 1 ( t ) = ϕ k ( t ) + α k + 1 Φ ( y k + 1 ) + Φ ( y k + 1 ) , t y k + 1 + h ( t ) .
Flows are reconstructed in the following way:
f ^ N = 1 A N k = 1 N α k Φ ( y k )
Lemma 3.
After N iterations of UMST for the stable dynamics model, it holds that
Q ( t N ) Q ( t * ) R 2 A N + ε 2 ,
0 Q ( t N ) + Ψ ( f ^ N ) + t * t ¯ , ( f ^ N f ¯ ) + R 2 A N + ε 2 ,
( f ^ N f ¯ ) + 2 4 R A N + 2 ε A N ,
where f ^ N is defined by (18) and R = t * t ¯ 2 is the distance from the starting point to a solution.
Theorem 3.
Let L 0 4 M 2 ε , where M comes from (5). Then, after at most
N Q = 4 R M ε 2
iterations of UGM for the stable dynamics model, it holds that Q ( t N ) Q ( t * ) ε . Moreover, the stopping criterion (7) with t ^ N = t N is fulfilled after at most
N s t o p = O R M ε 2 max 1 , g f * , t ¯ ξ R min e f ¯ e 2
iterations, where ξ comes from (6).
Theorem 4.
Let L 0 4 M 2 ε , where M comes from (5). Then, after at most
N Q = 4 R M ε 2
iterations of UMST for the Beckmann model, it holds that Q ( t N ) Q ( t * ) ε . Moreover, the stopping criterion (14) with t ^ N = t N is fulfilled after at most
N s t o p = 4 R ˜ M ε 2
iterations, where R ˜ is defined by (17). Appendix B is the proofs for UMST.

3.5. Method of Weighted Dual Averages

Convergence of the WDA method was proved in [14] and is summarized in the following theorem. Appendix C is the proofs for WAD.
Theorem 5.
Non-composite WDA-method satisfies the following bounds
  • For the stable dynamics model:
    Q ( t ^ k ) Q ( t * ) = O M + f ¯ 2 k R 2 χ + χ ,
  • For the Beckmann model if μ 1 :
    Q ( t ^ k ) Q ( t * ) = O 1 k M + max e f ¯ e 2 R + χ t ¯ e ρ μ R 2 χ + χ .

4. Numerical Experiments

This section presents numerical results for the algorithms described above, namely, composite variants of UMST and UGM, both composite and non-composite WDA-method, on the Anaheim network [5,22]. The network consists of 38 zones, 416 nodes, and 916 links. Experiments and the source code in Python 3 [23] can be found in [15]. We used Dijkstra’s algorithm for finding the shortest paths in the network from the graph-tool library [24], where it is implemented in C++. We also used the Numpy library [25] for all vector operations.
  • Stable dynamics model.
Parameters of the network are adjusted to the Beckmann model, so we have to increase the capacities to ensure the existence of an equilibrium for the stable dynamics model. In our experiments, the capacities are multiplied by 2.5 . In Figure 2, we plot the number of (inner) iterations of the algorithms required to fulfill the stopping criterion (7) against 1 / ε . We consider the number of inner iterations for Algorithms 3 and 2 since the complexity of an inner iteration in this case is similar to the complexity of an iteration of the other algorithms. Note that according to ([12], formula (2.23)) the number N ( k ) of inner iterations of UGM or UMST at step k is bounded as
N ( k ) 2 k + log 2 M 2 ε L 0 ,
so asymptotic rates from Theorems 1–4 are still valid.
As we can see, the best results are shown by UMST, followed by UGM having similar performance. Both composite and non-composite WDA-method in Algorithm 4 are much slower.
Algorithm 3 Universal Method of Similar Triangles.
Input: L 0 > 0 , accuracy ε > 0
 1:
u 0 = t 0 t ¯ , A 0 0 , k 0
 2:
repeat
 3:
L k + 1 L k / 2
 4:
while true do
 5:
   α k + 1 1 2 L k + 1 + 1 4 L k + 1 2 + A k L k + 1 , A k + 1 A k + α k + 1 y k + 1 α k + 1 u k + A k t k A k + 1 , u k + 1 arg min t dom h ϕ k + 1 ( t ) t k + 1 α k + 1 u k + 1 + A k t k A k + 1
 6:
  if Φ ( t k + 1 ) Φ ( y k + 1 ) + Φ ( y k + 1 ) , t k + 1 y k + 1 + L k + 1 2 t k + 1 y k + 1 2 2 + α k + 1 2 A k + 1 ε
  then
 7:
   break
 8:
  else
 9:
    L k + 1 2 L k + 1
 10:
  end if
 11:
end while
 12:
k k + 1
 13:
until Stopping criterion is fulfilled
Algorithm 4 Method of Weighted Dual Averages.
Input: accuracy ε > 0 , constant χ > 0
 1:
s 0 0 , t 0 t ¯ , k 0
 2:
repeat
 3:
 Compute subgradient g k , set s k + 1 s k + 1 g k 2 g k
  • non-composite case: g k Φ ( t k ) + h ( t k )
  • composite case: g k Φ ( t k )
 4:
 Set β k + 1 β ^ k + 1 χ , where β ^ k + 1 = i = 0 k 1 β ^ i , β ^ 0 = 1
 5:
 Set t k + 1
  • non-composite case: t k + 1 arg min t dom h s k + 1 , t + β k + 1 2 t t 0 2 2
  • composite case: t k + 1 arg min t dom h s k + 1 , t + β k + 1 2 t t 0 2 2 + i = 0 k 1 g k 2 h ( t )
 6:
k k + 1
 7:
until Stopping criterion is fulfilled
  • Beckmann model.
For the Beckmann model, we also compare our methods with the Frank–Wolfe algorithm (Algorithm 5), of which the theoretical convergence rate for a convex objective (with Lipschitz-continuous gradient) is O ( 1 / ε ) [7,26].
Figure 3 shows the convergence rates of the methods for the Beckmann model. The Frank–Wolfe method demonstrates the best results and is followed by UMST. Unlike the stable dynamics case, the composite WDA-method is faster than UGM. However, the non-composite WDA-method has the worst performance again.
Algorithm 5 Frank–Wolfe algorithm.
Input: accuracy ε > 0
 1:
t 0 t ¯ , f 0 arg min s { Θ x : x X } t 0 , s , k 0
 2:
repeat
 3:
s k arg min s { Θ x : x X } t k , s , t e k Ψ ( f k ) f e = τ e ( f k )
 4:
γ k 2 k + 2 , f k + 1 ( 1 γ k ) f k + γ k s k
 5:
k k + 1
 6:
until Stopping criterion is fulfilled

5. Conclusions

We considered several primal-dual subgradient methods for finding equilibria in the stable dynamics and the Beckmann models. We suggested a way to reconstruct admissible flows in the stable dynamics model, which provides us with a novel computable duality gap. Complexity bounds for UMST and UGM were presented in terms of the iterations number required to achieve a desired accuracy in the dual function value or the duality gap. Finally, we conducted numerical experiments comparing convergence of the considered algorithms on the Anaheim transportation network: UMST is the best one for optimization of the dual problems in both models. Furthermore, using the duality gap as a stopping criterion, we compared these methods with the Frank–Wolfe algorithm for the Beckmann model, which, as expected, remains the most suitable approach in this case (but it is not applicable for the stable dynamics model).
The reader may be interested in another related topic—searching stochastic traffic equilibria. In [27,28], we (with our colleagues) studied the application of the UMST for finding Nash–Wardrop stochastic equilibria in the Beckmann model. In this case, a driver selects a route randomly according to Gibbs’ distribution taking into account current time costs on the links of the network. It leads to iteration complexity O ( 1 γ ε ) , where γ > 0 is a stochasticity parameter (when γ 0 , the model boils down to the ordinary Beckmann model). However, the great decrease in the number of iterations comes along with a more expensive calculation of the objective function’s gradient.

Author Contributions

Conceptualization, A.G.; formal analysis, M.K. and A.G.; software, M.K.; supervision, A.G; validation, M.K. and A.G.; writing—original draft, M.K.; Writing—review and editing, M.K. and A.G. All authors have read and agreed to the published version of the manuscript.

Funding

The research of M. Kubentayeva was supported by the Russian Science Foundation (project 18-71-10108). The research of A. Gasnikov was partially supported by RFBR, project number 18-29-03071 mk, and was partially supported by the Ministry of Science and Higher Education of the Russian Federation (Goszadaniye) No. 075-00337-20-03.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We would like to thank Yu. Nesterov for fruitful discussions.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Appendix A. Proofs for UGM

Proof of Lemma 1.
Note that function Φ ( t ) satisfies (5). Then according to Theorem 1 in [12], applied with ν = 0 , one has
Q ( t ^ N ) 1 S N k = 1 N 1 L k Q ( t k ) min t t ¯ 1 S N k = 0 N 1 1 L k + 1 Φ ( t k ) + Φ ( t k ) , t t k + h ( t ) + t t 0 2 2 S N + ε 2 .
Equation (9) follows immediately if one substitutes t = t * . Now let us estimate the first term on the r.h.s.
min t t ¯ 1 S N k = 0 N 1 1 L k + 1 Φ ( t k ) + Φ ( t k ) , t t k + h ( t ) + t t ¯ 2 2 S N = min t t ¯ 1 S N k = 0 N 1 1 L k + 1 Φ ( t k ) + Φ ( t k ) , 0 t k Φ ( 0 ) f ^ N , t + f ¯ , t t ¯ + t t ¯ 2 2 S N Φ ( 0 ) f ^ N , t ¯ + min t t ¯ f ¯ f ^ N , t t ¯ + t t ¯ 2 2 S N = Ψ ( f ^ N ) S N ( f ^ N f ¯ ) + 2 2 4 .
Here, we used Φ ( 0 ) = w O D d w T w ( 0 ) = 0 . Therefore,
Q ( t ^ N ) + Ψ ( f ^ N ) + S N ( f ^ N f ¯ ) + 2 2 4 ε 2 .
Now, notice that since the flow f ^ N is induced by some traffic distribution x X , we have
0 Φ ( t * ) + t * , f ^ N = Q ( t * ) t * t ¯ , f ¯ + Ψ ( f ^ N ) t ¯ , f ^ N + t * , f ^ N = Q ( t * ) + Ψ ( f ^ N ) + t * t ¯ , f ^ N f ¯ Q ( t ^ N ) + Ψ ( f ^ N ) + t * t ¯ , ( f ^ N f ¯ ) + ,
hence
Q ( t ^ N ) + Ψ ( f ^ N ) t * t ¯ , ( f ^ N f ¯ ) + R ( f ^ N f ¯ ) + 2 .
This yields
S N ( f ^ N f ¯ ) + 2 2 4 R ( f ^ N f ¯ ) + 2 ε 2 ,
and thus
( f ^ N f ¯ ) + 2 2 R S N 1 + 1 + ε S N 2 R 2 4 R S N + 2 ε S N .
Proof of Theorem 1.
Theorem 1 in [12] ensures that L k M 2 ε for all k 0 , thus S N ε N M 2 . Then the first bound (12) follows immediately from (9).
Now, let us prove the second bound. First, suppose f ^ e N f ¯ e for all e E . Then π ( f ^ N ) = f ^ N , thus by (10) for N = N Q
Q ( t ^ N ) + Ψ ( π ( f ^ N ) ) = Q ( t ^ N ) + Ψ ( f ^ N ) R 2 S N + ε 2 ( R M ) 2 ε N + ε 2 ε .
Otherwise, if f ^ e N f ¯ e , one has π ( f ^ N ) = ξ f ^ N + η g ξ + η , where η = max e E f ^ e N / f ¯ e 1 , hence (9) and (10) yield
Q ( t ^ N ) + Ψ ( π ( f ^ N ) ) ξ ξ + η Q ( t ^ N ) + Ψ ( f ^ N ) + η ξ + η Q ( t ^ N ) + Ψ ( g ) = ξ ξ + η Q ( t ^ N ) + Ψ ( f ^ N ) + η ξ + η Q ( t ^ N ) Q ( t * ) = + η ξ + η Ψ ( g ) Ψ ( f * ) R 2 S N + ε 2 + η ξ g f * , t ¯ .
Finally, according to (11)
η = max e E f ^ e N / f ¯ e 1 = ( f ^ N f ¯ ) + f ¯ 1 min e f ¯ e ( f ^ N f ¯ ) + 2 1 min e f ¯ e 4 R S N + 2 ε S N .
Combining all bounds together we obtain
Q ( t ^ N ) + Ψ ( π ( f ^ N ) ) R 2 M 2 ε N + g f * , t ¯ ξ min e f ¯ e 4 R M 2 ε N + 2 M 2 N + ε 2 ,
and substituting N = N s t o p , we conclude that the stopping criterion (7) is fulfilled. □
Proof of Lemma 2.
First of all, note that
max t t ¯ f ^ N , t e E σ e * ( t e ) = e E σ e ( f ^ e N ) = Ψ ( f ^ N ) ,
and maximum is attained at point t = Ψ ( f ^ N ) = τ ( f ^ N ) . As in the proof of Theorem 1, the inequality (A1) holds in Beckmann’s model case. Then, the first term in the r.h.s. can be estimated as follows
min t t ¯ 1 S N k = 0 N 1 1 L k + 1 Φ ( t k ) + Φ ( t k ) , t t k + h ( t ) + t t ¯ 2 2 S N = min t t ¯ 1 S N k = 0 N 1 1 L k + 1 Φ ( t k ) + Φ ( t k ) , 0 t k Φ ( 0 ) f ^ N , t + e E σ e * ( t e ) + t t ¯ 2 2 S N Φ ( 0 ) + e E σ e * ( t e ( f ^ e N ) ) f ^ N , τ ( f ^ N ) + τ ( f ^ N ) t ¯ 2 2 S N = Ψ ( f ^ N ) + 1 S N τ ( f ^ N ) t ¯ 2 2 ,
and we finally get an upper bound on the duality gap:
0 Q ( t ^ N ) + Ψ ( f ^ N ) τ ( f ^ N ) t ¯ 2 2 S N + ε 2 .
At the same time, substituting t = t * one obtains
Q ( t ^ N ) Q ( t * ) + t * t ¯ 2 S N + ε 2 .
Proof of Theorem 2.
By construction, t ^ e N w O D d w for all e E , thus τ ( f ^ N ) t ¯ 2 R ˜ . According to Theorem 1 in [12] S N ε N M 2 ; thus, the statement follows immediately from Lemma 2. □

Appendix B. Proofs for UMST

Proof of Lemma 3.
According to the inequality (30) in [13]
Q ( t N ) min t t ¯ 1 A N k = 1 N α k Φ ( y k ) + Φ ( y k ) , t y k + h ( t ) + t t 0 2 2 2 A N + ε 2 .
Note that the above inequality has the same form as (A1), if one replaces S N with A N , 1 L k + 1 with α k , y k with t k , and t t 0 2 2 S N with t t 0 2 2 2 A N . Then the claim follows by the same reasoning as in the proof of Lemma 1. □
Proof of Theorem 3.
Due to (5) one has
Φ ( t k + 1 ) Φ ( y k + 1 ) + Φ ( y k + 1 ) , t k + 1 y k + 1 + M t k + 1 y k + 1 2 .
From Young’s inequality we get that
M t k + 1 y k + 1 2 α k + 1 2 A k + 1 ε + A k + 1 M 2 2 α k + 1 ε t k + 1 y k + 1 2 2 .
If L k + 1 A k + 1 M 2 α k + 1 ε , then the stopping condition for inner iterations is fulfilled. Therefore, at the end of the k-th iteration either L k + 1 < 2 A k + 1 M 2 α k + 1 ε or L k + 1 = L k 2 .
Now we are going to prove by induction that α k ε 2 M 2 , which is equivalent to L k 2 M 2 ε + 4 M 4 ε 2 A k , for all k 1 . For k = 1 it follows from A 1 = α 1 and L 0 4 M 2 ε . In the case where L k + 1 < 2 A k + 1 M 2 α k + 1 ε equation A k + 1 = L k + 1 α k + 1 2 immediately yields α k + 1 ε 2 M 2 . If L k + 1 = L k 2 , then by the induction hypothesis and monotonicity of the sequence { A k } k N we obtain
L k + 1 M 2 ε + 2 M 4 ε 2 A k 1 < 2 M 2 ε + 4 M 4 ε 2 A k .
Therefore,
A N ε N 2 M 2 .
Arguing in the same way as in the proof of Theorem 1, we obtain that
Q ( t N ) Q ( t * ) 2 R 2 M 2 ε N + ε 2
and
Q ( t ^ N ) + Ψ ( π ( f ^ N ) ) 2 R 2 M 2 ε N + g f * , t ¯ ξ min e f ¯ e 8 R M 2 ε N + 4 M 2 N + ε 2 .
After substitution N = N Q or N = N s t o p the claim follows. □
Proof of Theorem 4.
Repeating the proof of Theorem 2, we obtain that
Q ( t N ) Q ( t * ) R 2 A N + ε 2 , Q ( t N ) + Ψ ( f ^ N ) R ˜ 2 A N + ε 2 .
Then, we conclude applying (A3). □

Appendix C. Proof for WDA

Proof of Theorem 5.
According to Equation (3.5) from [14],
Q ( t ^ k ) Q ( t * ) = O L k R 2 χ + χ ,
whenever g k 2 L for all k.
In case of the stable dynamics model h ( t ) = f ¯ ; thus, we can take L = M + f ¯ 2 .
For the Beckmann model
h ( t ) t e = f ¯ e t e t ¯ e t ¯ e ρ μ .
Theorem 3 in [14] yields that t k t * 2 2 R 2 + χ 2 for all k, thus t k t ¯ 2 2 R + χ . Then, using μ 1 one obtains
h ( t k ) 2 t k t ¯ 2 μ max e f ¯ e ( t ¯ e ρ ) μ ( 2 R + χ ) μ max e f ¯ e ( t ¯ e ρ ) μ ,
thus we can take
L = M + max e f ¯ e 2 R + χ t ¯ e ρ μ .

References

  1. Beckmann, M.J.; McGuire, C.B.; Winsten, C.B. Studies in the Economics of Transportation; Yale University Press: New Haven, CT, USA, 1956. [Google Scholar]
  2. Patriksson, M. The Traffic Assignment Problem: Models and Methods; Courier Dover Publications: Mineola, NY, USA, 2015. [Google Scholar]
  3. US Bureau of Public Roads. Traffic Assignment Manual; Department of Commerce, Urban Planning Division: Washington, DC, USA, 1964.
  4. Nesterov, Y.; De Palma, A. Stationary dynamic solutions in congested transportation networks: Summary and perspectives. Netw. Spat. Econ. 2003, 3, 371–395. [Google Scholar] [CrossRef]
  5. Chudak, F.A.; Dos Santos Eleuterio, V.; Nesterov, Y. Static traffic assignment problem: A comparison between Beckmann (1956) and Nesterov & de Palma (1998) models. In Proceedings of the 7th Swiss Transport Research Conference, Ascona, Switzerland, 12–14 September 2007. [Google Scholar]
  6. Frank, M.; Wolfe, P. An algorithm for quadratic programming. Nav. Res. Logist. Q. 1956, 3, 95–110. [Google Scholar] [CrossRef]
  7. Jaggi, M. Revisiting Frank–Wolfe: Projection-free sparse convex optimization. In Proceedings of the 30th International Conference on Machine Learning, Atlanta, GA, USA, 16–21 June 2013; pp. 427–435. [Google Scholar]
  8. Fukushima, M. A modified Frank–Wolfe algorithm for solving the traffic assignment problem. Transp. Res. Part B Methodol. 1984, 18, 169–177. [Google Scholar] [CrossRef]
  9. LeBlanc, L.J.; Helgason, R.V.; Boyce, D.E. Improved efficiency of the Frank–Wolfe algorithm for convex network programs. Transp. Sci. 1985, 19, 445–462. [Google Scholar] [CrossRef]
  10. Arezki, Y.; Van Vliet, D. A full analytical implementation of the PARTAN/Frank–Wolfe algorithm for equilibrium assignment. Transp. Sci. 1990, 24, 58–62. [Google Scholar] [CrossRef]
  11. Chen, A.; Jayakrishnan, R.; Tsai, W. Faster Frank–Wolfe Traffic Assignment with New Flow Update Scheme. J. Transp. Eng. ASCE 2002, 128. [Google Scholar] [CrossRef]
  12. Nesterov, Y. Universal gradient methods for convex optimization problems. Math. Program. 2015, 152, 381–404. [Google Scholar] [CrossRef] [Green Version]
  13. Gasnikov, A.V.; Nesterov, Y.E. Universal method for stochastic composite optimization problems. Comput. Math. Math. Phys. 2018, 58, 48–64. [Google Scholar] [CrossRef]
  14. Nesterov, Y. Primal-dual subgradient methods for convex problems. Math. Program. 2009, 120, 221–259. [Google Scholar] [CrossRef]
  15. Kubentayeva, M. TransportNet. 2021. Available online: https://github.com/MeruzaKub/TransportNet (accessed on 30 April 2021).
  16. Sheffi, Y. Urban Transportation Networks; Prentice-Hall: Englewood Cliffs, NJ, USA, 1985; Volume 6. [Google Scholar]
  17. Rockafellar, R.T. Convex Analysis; Princeton University Press: Princeton, NJ, USA, 2015. [Google Scholar]
  18. Dijkstra, E.W. A note on two problems in connexion with graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef] [Green Version]
  19. Cormen, T.H.; Leiserson, C.E.; Rivest, R.L.; Stein, C. Introduction to Algorithms, 3rd ed.; MIT Press: Cambridge, MA, USA, 2009. [Google Scholar]
  20. Crauser, A.; Mehlhorn, K.; Meyer, U.; Sanders, P. A parallelization of Dijkstra’s shortest path algorithm. In International Symposium on Mathematical Foundations of Computer Science; Springer: Berlin/Heidelberg, Germany, 1998; pp. 722–731. [Google Scholar]
  21. Yin, C.; Wang, H. Developed Dijkstra shortest path search algorithm and simulation. In Proceedings of the 2010 International Conference on Computer Design and Applications, Qinhuangdao, China, 25–27 June 2010; Volume 1, pp. V1–V116. [Google Scholar]
  22. Transportation Networks for Research Core Team. Transportation Networks for Research. 2021. Available online: https://github.com/bstabler/TransportationNetworks (accessed on 30 April 2021).
  23. Van Rossum, G.; Drake, F.L. Python 3 Reference Manual; CreateSpace: Scotts Valley, CA, USA, 2009. [Google Scholar]
  24. Peixoto, T.P. The graph-tool python library. Figshare 2014. [Google Scholar] [CrossRef]
  25. Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef] [PubMed]
  26. Pedregosa, F.; Negiar, G.; Askari, A.; Jaggi, M. Linearly Convergent Frank-Wolfe with Backtracking Line-Search. In Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics, Palermo, Italy, 3–5 June 2020. [Google Scholar]
  27. Gasnikov, A.V.; Kubentayeva, M.B. Searching stochastic equilibria in transport networks by universal primal-dual gradient method. Comput. Res. Model. 2018, 10, 335–345. [Google Scholar] [CrossRef]
  28. Baimurzina, D.R.; Gasnikov, A.V.; Gasnikova, E.V.; Dvurechensky, P.E.; Ershov, E.I.; Kubentaeva, M.B.; Lagunovskaya, A.A. Universal method of searching for equilibria and stochastic equilibria in transportation networks. Comput. Math. Math. Phys. 2019, 59, 19–33. [Google Scholar] [CrossRef]
Figure 1. Parallel routes.
Figure 1. Parallel routes.
Mathematics 09 01217 g001
Figure 2. Convergence rates of UMST, UGM, composite and non-composite WDA-methods for the stable dynamics model with the stopping criterion (7). Here, ε ˜ is the relative accuracy ε / Δ 0 , where Δ 0 is the duality gap at the start point.
Figure 2. Convergence rates of UMST, UGM, composite and non-composite WDA-methods for the stable dynamics model with the stopping criterion (7). Here, ε ˜ is the relative accuracy ε / Δ 0 , where Δ 0 is the duality gap at the start point.
Mathematics 09 01217 g002
Figure 3. Convergence rates of UMST, UGM, composite and non-composite WDA-methods, and the Frank–Wolfe method for the Beckmann model with the stopping criterion (14). Here, ε ˜ is the relative accuracy ε / Δ 0 , where Δ 0 is the duality gap at the start point.
Figure 3. Convergence rates of UMST, UGM, composite and non-composite WDA-methods, and the Frank–Wolfe method for the Beckmann model with the stopping criterion (14). Here, ε ˜ is the relative accuracy ε / Δ 0 , where Δ 0 is the duality gap at the start point.
Mathematics 09 01217 g003
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kubentayeva, M.; Gasnikov, A. Finding Equilibria in the Traffic Assignment Problem with Primal-Dual Gradient Methods for Stable Dynamics Model and Beckmann Model. Mathematics 2021, 9, 1217. https://doi.org/10.3390/math9111217

AMA Style

Kubentayeva M, Gasnikov A. Finding Equilibria in the Traffic Assignment Problem with Primal-Dual Gradient Methods for Stable Dynamics Model and Beckmann Model. Mathematics. 2021; 9(11):1217. https://doi.org/10.3390/math9111217

Chicago/Turabian Style

Kubentayeva, Meruza, and Alexander Gasnikov. 2021. "Finding Equilibria in the Traffic Assignment Problem with Primal-Dual Gradient Methods for Stable Dynamics Model and Beckmann Model" Mathematics 9, no. 11: 1217. https://doi.org/10.3390/math9111217

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop