Pontryagin’s Maximum Principle in Penalized Joint Optimization of Vehicle Queue Dynamics for Road Traffic

Abstract

The application of Pontryagin’s Maximum Principle (PMP) to optimize the dynamics of vehicle queues in road traffic systems. We present a mathematical framework that integrates optimal control theory with traffic flow dynamics to enhance the efficiency and performance of road networks. By modeling vehicle behavior and interactions within queues, we identify optimal control strategies that minimize delays and maximize throughput. The proposed methodology includes a comprehensive analysis of system constraints and environmental factors impacting traffic flow. Simulation results demonstrate the effectiveness of the PMP approach in various traffic scenarios, highlighting significant improvements in queue management and overall traffic efficiency. Our findings contribute to the development of advanced traffic management systems and provide valuable insights for future research in transportation optimization.

Share and Cite:

Bigirimana, M. , Nahayo, F. , Haddou, M. and Niyongere, A. (2026) Pontryagin’s Maximum Principle in Penalized Joint Optimization of Vehicle Queue Dynamics for Road Traffic. Open Journal of Applied Sciences, 16, 2361-2383. doi: 10.4236/ojapps.2026.167134.

1. Introduction

Efficient management of road traffic is a central challenge in modern transportation systems, with direct implications for travel time, fuel consumption, and environmental impact. Vehicle queues at bottlenecks intersections, on-ramps, signalized junctions, or lane drops are a primary source of delay and flow degradation. This paper investigates a control-theoretic approach to reducing queueing delay and improving throughput by applying Pontryagin’s Maximum Principle (PMP) to a penalized joint optimization problem for vehicle-queue dynamics.

In particular, we show that a coupled two-vehicle continuous-time dynamics model can serve as a building block for representing queue evolution: the interaction between the lead and the following vehicles captures the local propagation of congestion, while the combined state and control trajectories approximate the queue’s aggregate behavior.

We construct a continuous-time optimal control model that captures individual vehicle interactions within a platoon and the aggregate behavior of the queue, incorporate operational and safety constraints, and introduce penalty terms to enforce feasibility and desirable performance metrics. Using the indirect (PMP-based) approach, we derive necessary conditions for optimality, obtain a reduced Hamiltonian formulation where possible, and develop a symplectic Partitioned Runge-Kutta (SPRK) discretization to integrate the state-adjoint system while preserving geometric structure. Numerical experiments and simulations illustrate how the PMP framework yields control laws that reduce delays and smooth traffic flow under various scenarios. The contributions of this work are: i) a rigorous PMP formulation for joint optimization of vehicle queues with penalty terms for constraints; ii) an analysis of regularity and implementability conditions enabling the implicit elimination of control variables; and iii) a structure-preserving numerical scheme (SPRK) adapted to the resulting Hamiltonian boundary-value problem, validated with simulation results.

2. Literature Review

2.1. Optimal Control and Traffic Flow

The intersection of optimal control theory and traffic modeling has produced a rich literature addressing ramp metering, signal timing, and ramp-to-mainline coordination (See Papageorgiou et al., 2008 [1]; Daganzo, 1994 [2]). Classical macroscopic models (Lighthill-Whitham-Richards, kinematic waves) and microscopic car-following models have both been used as the dynamical substrate for control design. More recent works concentrate on platoon control and cooperative adaptive cruise control (CACC) where local interactions are optimized to improve string stability and throughput (Swaroop & Hedrick, 1996 [3]; Rajamani, 2012 [4]).

2.2. Pontryagin’s Maximum Principle in Traffic Applications

PMP has been applied to various transportation problems including speed profile optimization, eco-driving, and gap-minimizing strategies for vehicle merging (See Miculescu & Karaman, 2015 [5]; Zhao, L., Malikopoulos et al., 2018 [6]). These works exploit PMP’s capability to provide necessary optimality conditions and to characterize bang-bang or singular controls in constrained settings. The indirect method based on PMP is particularly valuable when analytical insight on the control structure is sought, although it requires solving two-point boundary value problems (TPBVPs) and ensuring appropriate regularity.

2.3. Penalization and Constrained Optimal Control

Handling state and control constraints in PMP formulations often involves penalization or the use of Lagrange multipliers and complementarity conditions. Classical texts (See, Bryson & Ho, 2018 [7]; White, David H., 2012 [8]) detail penalization techniques and constraint relaxation methods. More recent computational approaches combine penalty terms with interior point solvers or augmented Lagrangian methods to tractably enforce constraints in large-scale control problems (See Nocedal & Wright, 2006 [9]; Wächter & Biegler, 2006 [10]).

2.4. Discrete Structure-Preserving Integrators for Hamiltonian Systems

When using the indirect PMP approach the resulting necessary conditions form a Hamiltonian boundary-value problem. Symplectic integrators, including symplectic Runge-Kutta and Partitioned Runge-Kutta (PRK) methods, have been shown to preserve qualitative features of Hamiltonian flows (hairiness: conservation of the symplectic form, near-conservation of energy over long times) and to yield improved long-term numerical behavior for TPBVPs (Hairer, Lubich & Wanner, 2006 [11]; Sanz-Serna & Calvo, 1995 [12]). The theory of B-series and P-series provides a systematic way to derive order conditions for such methods (Butcher, 1987 [13]; Laurent-Varin, J. 2005 [14]).

2.5. Applications of PMP with Structure-Preserving Discretization in Traffic

A growing body of work addresses the numerical implementation of PMP for traffic problems with attention to preserving system structure. Examples include optimal control of connected automated vehicle platoons using indirect methods with tailored integrators (Hairer, E., Lubich et al., 2002 [15]) and trajectory optimization for eco-driving with symplectic or variational integrators to maintain stability over long horizons (Zhang, Y., & Cassandras, C. G. 2019 [16]).

2.6. Gaps and Motivation for the Present Study

Despite extensive literature on PMP and traffic control, relatively few studies explicitly combine a penalized joint optimization for vehicle queues with a rigorous symplectic discretization tailored to the resulting Hamiltonian structure. In particular, the treatment of multi-vehicle coupling, inequality constraints on states and controls, and the numerical preservation of geometric invariants in the discrete TPBVP setting remains underexplored. This paper aims to fill that gap by: formulating a penalized PMP model for joint queue optimization, analyzing regularity conditions that permit control elimination, and devising a practical SPRK4 discretization whose coefficients satisfy the required order and symplecticity conditions, validated through AMPL/IPOPT and MATLAB simulations.

3. Mathematical Analysis of Penalized Joint Optimization of Vehicle Queue Dynamics in Road Traffic

Consider now an optimal control problem with constraints of the following form:

{ min δU J( y( . ),δ( . ) ) y ˙ ( t )=f( y( t ),δ( t ) ) g L g( y,δ ) g U y( t 0 )= y 0 (1)

In system (1), f:× n × m n and g: n × m n are maps of class C . The functions g L and g U denote, respectively, the lower and upper bounds on the state variables.

Penalty Techniques for Constraints in Optimal Control

In the context of optimal control problems, it is often necessary to address constraints on states or controls, which can complicate the problem’s resolution. Penalty methods provide an effective approach to integrate these constraints into the optimization process. This section focuses on two types of state constraint penalization, exterior penalization and interior penalization. Exterior penalization involves adding a penalty term to the objective function to discourage solutions that violate the constraints. This method is particularly useful when the constraints are difficult to manage or when adherence to them is critical [17]. So, the penalized objective function in the system (1) becomes:

J pen ( . )=J( . )+ ρ 2 i=1 n { ( max( 0, g i ( y,δ ) g i U ) ) 2 + ( max( 0, g i L g i ( y,δ ) ) ) 2 }, (2)

where ρ>0 is a penalty parameter that controls the significance of the constraint. It should be noted that in a problem of the form (1), the exterior penalty affects only the objective function J( . ) and not the constraints g L g( y,δ ) g U or the initial conditions y( t 0 )= y 0 .

On the other hand, interior or logarithmic penalization aims to keep the solutions within the constraint space by modifying the cost function. This approach can be more effective when the constraints are defined to allow admissible solutions at the boundaries.

J pen ( . )=J( . )ε i=1 n { ln( g i U g i ( y,δ ) )+ln( g i ( y,δ ) g i L ) } (3)

The logarithmic term in (3) penalizes solutions that approach the boundaries of the constraints, and the scalar parameter ε must be small. In this specific case, an admissible solution to this problem is such that the state equation y ˙ =f( y,δ ) remains valid, as well as the inequalities g i U g i ( y,δ )>0 and g i ( y,δ ) g i L >0 [14] [18]. Penalty methods, whether exterior or interior, offer flexible approaches to incorporate state constraints into optimal control problems. The choice between these methods often depends on the nature of the constraints, the characteristics of the problem, and the desired performance criteria. However, selecting the penalty parameter is an iterative process that may require experimentation.

4. SPRK Discretization of a Constrained Penalized Optimal Control Problem

4.1. General Description of Symplectic PRK Methods

The general principle of SPRK methods is based on the system dynamics written as a system of differential equations of the form:

y ˙ =f( y,δ ),y( 0 )= y 0 , (4)

which can be rewritten in the form of the following Hamiltonian system

y ˙ = J ˜ 1 ( y, p ˜ ), (5)

where J ˜ =( 0 I n I n 0 ) is the canonical matrix for Hamiltonian systems and I n denotes the n×n identity matrix [19]. Note that, for the Hamiltonian system (5), the following Jacobian matrix of partial derivatives of the numerical flow with respect to y and p ˜ defined by:

ξ h : 2n 2n ( y n , p ˜ n ) ( y n+1 , p ˜ n+1 )

preserves the canonical symplectic form and thus satisfies the (6) following Poincaré matrix identity [20]

( ξ h ( y, p ˜ ) ) T J ˜ ( ξ h ( y, p ˜ ) )= J ˜ , (6)

then the Runge-Kutta numerical method y n+1 = ξ h ( y n ) is said to be symplectic for the Hamiltonian (5), with regular and for every sufficiently small time step [19] [21]. We say that a PRK scheme is symplectic if its associated flow is symplectic. It is known that PRK schemes satisfying the (7) following relation:

b ^ i := b i , a ^ ik := b k b k b i a ki ,i=1,,s;k=1,,s. (7)

are symplectic; we denote this class by SPRK [15] [22] [23].

4.2. Optimal Control Problem Formulation

The complete statement of the optimal control problem addressed in this work, together with its detailed description, is presented using the indirect approach based on the Pontryagin Maximum Principle. This approach stems from the joint optimization of a platoon of road vehicles, as it is described in [24]. We implement and analyze this method here to derive the necessary optimality conditions and to develop an appropriate symplectic discretization.

Before extending the framework to a full queue of vehicles, the interaction dynamics are first studied at the pairwise level, considering a leader-follower pair as the elementary unit of analysis. This two-vehicle setting allows for a rigorous examination of the local coupling between consecutive vehicles, providing the foundational understanding necessary for scaling the model to larger platoons.

In the following, the complete problem formulation is:

{ max ( y,δ ) ad 15 × ad 15 ×U J G 12 ( y( . ),δ( . ) )=λJ( y 1 ( t ), δ 1 ( t ) )+( 1λ )J( y 2 ( t ), δ 2 ( t ) )+P( . ) y ˙ ( t )=f( y( t ),δ( t ) ),y( t )=( y 1 ( t ), y 2 ( t ) ),δ( t )=( δ 1 ( t ), δ 2 ( t ) ) l 1j ( y j ( t ), δ j ( t ) )0, l 2j ( y j ( t ), δ j ( t ) )0 y j min y j ( t ) y j max , δ j min δ j ( t ) δ j max ,j=1,2 (8)

In the formulation (8) above, J G 12 ( . ) is the coupled-model cost; i.e. the overall smoothness, y ˙ denotes the traffic dynamics for a pair of vehicles, while l 1j ( y j , δ j ) and l 2j ( y j , δ j ) are constraints on the state and the control, respectively. The function J( y j , δ j )= 1 v max 2 R( ϕ j , θ j , ψ j ) v a j + Ω j × r G j o 2 +g( y j , δ j ) is the individual traffic smoothness function, where R( ϕ j , θ j , ψ j ) is the rotation operator matrix, v a j = ( u j , v j , w j ) T is the individual vehicle aerodynamic velocity, Ω j = ( p j , q j , r j ) T is the vehicle’s angular velocity, r G j o = ( X G j o , Y G j o , Z G j o ) T is the vehicle’s vector position in the R G j frame relative to the observer’s R O frame, y j is the vehicle’s state vector and g( y j , δ j )= δ j 2 δ jmax 2 is the control price function. The term P( . )= η 1 [ ( S G 12 o S min ) 2 1+ ( S G 12 o S min ) 2 ]+ η 2 [ ( ( Y G 12 o 2 + ε 2 ) 1/2 Y max ) 2 1+ ( ( Y G 12 o 2 + ε 2 ) 1/2 Y max ) 2 ]+ η 3 ( u 12 2 + v 12 2 ) is the penalty function that includes penalty terms, encouraging minimal separation and appropriate relative speeds [25] [26].

However, in the previous formulation, certain aircraft-inspired variables such as aerodynamic velocity, roll, pitch, yaw, and observer-frame coordinates are relevant because they provide a fine-grained dynamic description of how vehicle states as velocities and orientations evolve over time, enabling a direct link between congestion and the vehicles’physical behavior. The goal is to exploit the propagation of congestion and inter-vehicle perturbations to model the queue’s overall evolution. Accordingly, transferring the dynamics to the queue-level description is justified by approximating the aggregate behavior from leader-follower interactions under operational constraints.

4.3. Optimality Conditions and Symplectic Discretization

For any absolutely continuous function p ˜ ( . ):[ 0,T ] 0 n , called the adjoint state vector, and any real number p ˜ 0 0 , such that the pair ( p ˜ ( . ), p ˜ 0 ) is nontrivial, the pseudo-Hamiltonian of problem (8) is defined by the following function:

H( y,δ, p ˜ , p ˜ 0 ,t )= p ˜ T ,f( y,δ,t ) p ˜ 0 J G 12 ( y,δ,t ) μ 1 l 1j ( y,δ,t )+ μ 2 l 2j ( y,δ,t ) (9)

where p ˜ =( p ˜ 1 , p ˜ 1 ) and p ˜ j 15 is the adjoint vector. With the new Pontryagin formulation (9), we state the necessary optimality conditions as follows:

H δ ( y,δ, p ˜ , p ˜ 0 ,t )=0 y ˙ = H p ˜ ( y,δ, p ˜ , p ˜ 0 ,t )=f( y,δ,t ) p ˜ ˙ = H y ( y,δ, p ˜ , p ˜ 0 ,t ) l 1j ( y,δ,t )0, l 2j ( y,δ,t )0 t[ 0,T ], μ 1 0, μ 2 0 (10)

The state-adjoint equations are derived from:

p ˜ ˙ 1j = H m j , p ˜ ˙ 2j = H v a j , p ˜ ˙ 3j = H γ a j , p ˜ ˙ 4j = H u j , p ˜ ˙ 5j = H v j , p ˜ ˙ 6j = H w j , p ˜ ˙ 7j = H p j , p ˜ ˙ 8j = H q j , p ˜ ˙ 9j = H r j , p ˜ ˙ 10j = H θ j , p ˜ ˙ 11j = H ϕ j , p ˜ ˙ 12j = H ψ j , p ˜ ˙ 13j = H X G j o , p ˜ ˙ 14j = H Y G j o , p ˜ ˙ 13j = H Z G j o (11)

From the constraint relation H δ ( y,δ, p ˜ , p ˜ 0 ,t )=0 , we deduce certain regularity assumptions. Let ( u ¯ , y ¯ , p ¯ ) be an extremal that satisfies the necessary conditions optimality as it’s described in (10). If the map

δ H δδ ( y,δ, p ˜ , p ˜ 0 ,t ) is invertible along the trajectory,(12)

then by the implicit function theorem, in a small L -neighborhood of that trajectory we have H δ ( y,δ, p ˜ , p ˜ 0 ,t )=0 iff δ( . ) can be expressed as a smooth function of the form δ( t )=ϕ( y( t ),p( t ) ) . Under these conditions, the true Hamiltonian of the system is defined as the following:

( y,δ, p ˜ , p ˜ 0 ,t ):=H( ϕ( y, p ˜ ),y, p ˜ ) (13)

By using H δ ( ϕ( y( t ), p ˜ ( t ) ),y( t ), p ˜ ( t ) )=0 in (13), we have y ( y, p ˜ )= H y ( ϕ( y, p ˜ ),y, p ˜ ) and p ˜ ( y, p ˜ )= H p ˜ ( ϕ( y, p ˜ ),y, p ˜ ) . Therefore, under assumption (12), the optimality conditions in (10) are locally equivalent to the following reduced Hamiltonian system [27]:

y ˙ = p ˜ ( y, p ˜ ),y( 0 )= y 0 p ˜ ˙ = y ( y, p ˜ ), p ˜ ( T )= ϕ ( y( T ) ) l 1j ( y,δ,t )0, l 2j ( y,δ,t )0,t[ 0,T ] (14)

According to Lagrange, a curve ( y n , p ˜ n , δ n i , q ˜ n i ) is an optimal solution of the (15) following discretized problem:

{ max ( y n , δ n i ) J G 12 ( y n , δ n i ) 0= y n y n+1 +h i=1 s b i f( y n i , δ n i ) 0= y n y n i +h k=1 s a ik f( y n k , δ n k ) 0= y 0 y( 0 ) (15)

when the five following conditions in (16) are simultaneously satisfied:

L y n = y n ( L n + L n+1 )=0 L y n i = y n i L n+1 =0, i=1,,s L δ n i = δ n i L n+1 =0, i=1,,s L y p ˜ n = p ˜ n L n =0, n=0,, N t 1 L y q ˜ n i = q ˜ n i L n+1 =0, i=1,,s (16)

where h is the discretization step size, A=( a ik ) , and b=( b i ) are Runge-Kutta coefficients. The Lagrangian function associated with (15) reads:

L= J G 12 ( y n , δ n i )+ p ˜ 0 T ( y 0 y( 0 ) )+ n=0 N t 1 { p ˜ n+1 T ( y n y n+1 +h i=1 s b i f( y n i , δ n i ) ) + i=1 s q ˜ n i T ( y n y n i +h k=1 s a ik f( y n k , δ n k ) ) } (17)

p ˜ n+1 , q ˜ n i and p ˜ 0 are Lagrange multipliers associated with system (15). In what follows, the variables, p ˜ n will be interpreted as the discretization of the adjoint state from the continuous formulation. We have the following optimality conditions:

p ˜ N t = Φ ( y N t ), p ˜ 1 = p ˜ 0 , p ˜ n p ˜ n+1 = i=1 s f y ( y n i , δ n i ) T q ˜ n i , 0=h b i p ˜ n+1 +h k=1 s a ki f y ( y n k , δ n k ) T q ˜ n k q ˜ n i , 0= f δ ( y n i , δ n k ) T q ˜ n i , n=0,, N t 1; i=1,,s. (18)

Using the assumption that b i 0 and defining p ˜ n i := q ˜ n i / ( h b i ) , n=0,, N t 1 and i=1,,s , the elimination of q ˜ n i in (18) leads to the application of a Partitioned Symplectic Runge-Kutta method of types M=( A,b ) and M ^ =( A ^ , b ^ ) , which yields the discrete optimality conditions of the following form:

{ y n+1 = y n +h i=1 s b i f( y n i , δ n i ), y( 0 )= y 0 y n i = y n +h k=1 s a ik f( y n k , δ n k ) p ˜ n+1 = p ˜ n h i=1 s b ^ i H y ( y n i , δ n i , p ˜ n i ), p ˜ N t = Φ ( y N t ) p ˜ n i = p ˜ n h k=1 s a ^ ik H y ( y n k , δ n k , p ˜ n k ) 0= H δ ( y n i , δ n i , p ˜ n i ) (19)

4.4. Numerical Implementation of the SPRK4 Algorithm

The SPRK4 algorithm proceeds as follows:

1) We discretize the time interval [ 0,T ] into N t subintervals of step size h= t n+1 t n = T N t , where N t is the maximum number of iterations.

2) For 0n N t :

y n+1 = y n +h i=1 s b i f( y n i , δ n i ), y( 0 )= y 0 y n i = y n +h k=1 s a ik f( y n k , δ n k ) p ˜ n+1 = p ˜ n h i=1 s b ^ i H y ( y n i , δ n i , p ˜ n i ), p ˜ N t = Φ ( y N t ) p ˜ n i = p ˜ n h k=1 s a ^ ik H y ( y n k , δ n k , p ˜ n k ) H δ ( y n i , δ n i , p ˜ n i )=0 a ^ ik := b k b k b i a ki , b ^ i = b i (20)

3) Write: t n+1 , y n+1 , p ˜ n+1 .

4) Stop

The first equation of (20) can be written in the following explicit form:

(21)

The second equation of (20) can be written in the following explicit form:

(22)

The third equation of (20) can be written in the following explicit form:

p ˜ 1j,n+1 = p ˜ 1j,n h i=1 s b ^ i H m j ( y n i , δ n i , p ˜ n i ), p ˜ 1j, N t = p ˜ 1j ( T ) p ˜ 2j,n+1 = p ˜ 2j,n h i=1 s b ^ i H v aj ( y n i , δ n i , p ˜ n i ), p ˜ 2j, N t = p ˜ 2j ( T ) p ˜ 3j,n+1 = p ˜ 3j,n h i=1 s b ^ i H γ aj ( y n i , δ n i , p ˜ n i ), p ˜ 3j, N t = p ˜ 3j ( T ) p ˜ 4j,n+1 = p ˜ 4j,n h i=1 s b ^ i H u j ( y n i , δ n i , p ˜ n i ), p ˜ 4j, N t = p ˜ 4j ( T ) p ˜ 5j,n+1 = p ˜ 5j,n h i=1 s b ^ i H v j ( y n i , δ n i , p ˜ n i ), p ˜ 5j, N t = p ˜ 5j ( T ) p ˜ 6j, n i = p ˜ 6j,n h k=1 s a ^ ik H w j ( y n k , δ n k , p ˜ n k ), i=1,,s

p ˜ 7j,n+1 = p ˜ 7j,n h i=1 s b ^ i H p j ( y n i , δ n i , p ˜ n i ), p ˜ 7j, N t = p ˜ 7j ( T ) p ˜ 8j,n+1 = p ˜ 8j,n h i=1 s b ^ i H q j ( y n i , δ n i , p ˜ n i ), p ˜ 8j, N t = p ˜ 8j ( T ) p ˜ 9j,n+1 = p ˜ 9j,n h i=1 s b ^ i H r j ( y n i , δ n i , p ˜ n i ), p ˜ 9j, N t = p ˜ 9j ( T ) p ˜ 10j,n+1 = p ˜ 10j,n h i=1 s b ^ i H θ j ( y n i , δ n i , p ˜ n i ), p ˜ 10j, N t = p ˜ 10j ( T ) p ˜ 11j,n+1 = p ˜ 11j,n h i=1 s b ^ i H ϕ j ( y n i , δ n i , p ˜ n i ), p ˜ 11j, N t = p ˜ 11j ( T ) p ˜ 12j,n+1 = p ˜ 12j,n h i=1 s b ^ i H ψ j ( y n i , δ n i , p ˜ n i ), p ˜ 12j, N t = p ˜ 12j ( T ) p ˜ 13j,n+1 = p ˜ 13j,n h i=1 s b ^ i H X G j o ( y n i , δ n i , p ˜ n i ), p ˜ 13j, N t = p ˜ 13j ( T ) p ˜ 14j,n+1 = p ˜ 14j,n h i=1 s b ^ i H Y G j o ( y n i , δ n i , p ˜ n i ), p ˜ 14j, N t = p ˜ 14j ( T ) p ˜ 15j,n+1 = p ˜ 15j,n h i=1 s b ^ i H Z G j o ( y n i , δ n i , p ˜ n i ), p ˜ 15j, N t = p ˜ 15j ( T ) (23)

The fourth equation of (20) can be written in the following explicit form:

p ˜ 14j, n i = p ˜ 14j,n h k=1 s a ^ ik H Y G j o ( y n k , δ n k , p ˜ n k ), i=1,,s p ˜ 15j, n i = p ˜ 15j,n h k=1 s a ^ ik H Z G j o ( y n k , δ n k , p ˜ n k ), i=1,,s (24)

The fifth equation of (20) can be written in the following explicit form:

H δ x j ( y n i , δ n i , p ˜ n i )=0, H δ l j ( y n i , δ n i , p ˜ n i )=0 H δ m j ( y n i , δ n i , p ˜ n i )=0, H δ n j ( y n i , δ n i , p ˜ n i )=0 (25)

4.5. Fourth Order Conditions for Symplectic PRK Schemes

A fundamental tool in the study of order- s conditions is the theory of B-series and the associated rooted-tree calculus, following Butcher [13]. For Partitioned Runge-Kutta schemes, this theory extends to P-series and the corresponding calculus on bicolored rooted trees. The latter allows the order-s conditions to be expressed in terms of the coefficients a ik , b i , a ^ ik and b ^ i . We assume the reader has basic background on B-series and P-series [15]. The derivation of the order- s conditions for the symplectic Runge-Kutta method relies on graph theory, as shown by Julien Laurent-Varin and Hager [14] [28]. We will begin by deriving the order conditions for s=4 . For the table of order conditions for s4 , the reader may refer to the work of J. Laurent-Varin [14]. Defining d k = i=1 s b i a ik and c i = k=1 s a ik , the 4th order conditions are collected in the following table:

Table 1. Equations of the eight 4th order conditions of SPRK algorithm [14].

G i

Graph

Condition

G i

Graph

Condition

G 1

l,k=1 4 a lk d k d l = 1 8

G 2

G 3

i,k=1 4 b i b k a ik c i d k = 5 24

G 4

k,i=1 4 b i a ik c i c k = 1 8

G 5

k=1 4 c k 2 d k = 1 12

G 6

k=1 4 b i 2 c i 3 = 1 4

G 7

k=1 4 1 b k c k d k 2 = 1 12

G 8

l=1 4 1 b l 2 d l 3 = 1 4

4.6. Simulation Setup

The simulation is carried out over a fixed time horizon of 200 seconds, with a discretization step of 0.025. The initial state vector of the leader vehicle is set to y 1 ( 0 )=( 3000,22,2.5,22,2.5,1.5,0,0,0,5,5,5,50,20,0 ) , while initial state of the follower vehicle is set to y 2 ( 0 )=( 3250,22,2.59,22,3.5,1.5,0,0,0,5,5,5,125,21,0 ) . The initial control vector, shared by both vehicles, is defined as δ 0 =( 0.2,0,0.02,0 ) . Regarding constraint handling, the penalty coefficients for state-variable violations are sampled within the interval ( 0,0.1 ) for all relevant state constraints, while the optimal penalty parameter ρ is fixed at 1.5 × 103. For the objective function, the coupling parameters λ are generated uniformly over ( 0,1 ) . The penalty coefficients are fixed to η 1 =0.1 , η 2 =0.025 and η 3 =0.02 respectively and the separation thresholds are set to S min =10 m and Y max =1.5 m. The numerical solver is configured with the following settings: a convergence tolerance (tol) of 104, a maximum number of iterations (max_iter) of 500, a constraint violation tolerance (constr_viol_tol) of 2.5 × 104, a dual infeasibility tolerance (dual_inf_tol) of 0.6 × 10−4, an adaptive barrier strategy (mu_strategy = adaptive), no NLP scaling (nlp_scaling_method = none), and error halting enabled (halt_on_ampl_error yes).

5. Digital Results of SPRK4 Method

The data and parameters of the model are extracted from the technical sheets of two different vehicles, the Land Cruiser 204ch-BVA6, 5 doors-5 seats, 2.8 L D-4D Diesel and the Toyota Hilux IV(2) X-TRA Cab 204ch-BVA6 4 doors-4 seats, 2.8 L D-4D Diesel, while other data are sourced from the literature [29]-[32]. All these data are presented in the Appendix (See Table A1 and Table A2).

Note that in this work, the inequality constraints are handled through a penalization approach directly embedded in the cost functional, which penalizes trajectories that violate the prescribed bounds on the state variables. Feasibility is assessed a posteriori by verifying that the computed trajectory remains within the admissible region at each discretization step, without explicitly enforcing complementarity conditions. It should be noted that, in our setting, only penalization is enforced, no complementarity condition of the form μg( x )=0 is explicitly imposed which simplifies the numerical resolution while still ensuring that constraint violations are sufficiently discouraged through the choice of the penalization parameter.

5.1. Numerical Results for Symplectic PRK4 Schemes

Taking into account the fourth order conditions from Table 1 for the practical implementation of the SPRK algorithm, the numerical computation of the coefficients used in the MATLAB code produces the following results:

Iteration

Func-count

Residual

First-Order optimality

Lambda

Norm of step

0

401

73511.3

3.28e+05

0.01

1

802

6687.11

1.04e+04

0.001

7.16992

2

1203

72.1339

746

0.0001

0.972471

3

1604

20.7787

8.13e+03

1e−05

0.357347

4

2007

2.94188

1.57e+03

0.001

1.71639

5

2409

1.39244

159

0.01

0.442513

6

2810

1.22495

1.05e+03

0.001

0.579999

7

3211

0.264347

383

0.0001

0.920228

8

3612

0.0186675

36.6

1e−05

0.333117

9

4013

0.000765176

4.33

1e−06

0.122321

10

4414

3.22118e−06

0.241

1e−07

0.0235201

11

4815

7.11017e−11

0.00113

1e−08

0.00158433

12

5216

1.69507e−20

1.66e−08

1e−09

7.43876e−06

A=[ 1.139217 3.376899 7.154047 0.468846 1.608494 3.662597 1.611763 0.030868 0.523716 3.335599 0.903264 1.910918 1.494769 6.200461 2.325248 1.551073 ]

b=[ 0.000037 0.004776 0.000721 0.005069 ]

A ^ =[ 1.13918 207.63092 10.20611 204.78842 0.026198 3.667373 0.5042735 6.585918 0.367166 10.68131 0.902543 16.352756 0.003459 0.024308 0.272524 1.556169 ]

5.2. Pontryagin’s Maximum Principle Outcomes

The following results were obtained using the indirect approach based on the Pontryagin’s Maximum Principle, implemented in the AMPL, “A Mathematical Programming Modeling Language”, environment and solved with the open-source solver IPOPT. The final feasibility and optimality error margin is: “EXIT= Optimal Solution Found, Dual infeasibility = 4.06e−006, Constraint violation = 2.52e−005, Complementarity = 1.005e−013, Overall NLP error = 2.52e−005”.

Figure 1 shows the evolution of the overall traffic flow metric J G,12 , whose values range between 0.3 and 1.69, as well as the primary infeasibility errors Inf_pr and dual infeasibility errors Inf_du, which converge to 0. This result indicates a fluid traffic state in which vehicles travel normally at high speeds.

Fluidity function J G,12 is measured on a scale from 0 to 1, occasionally exceeding 1 depending on the normalization adopted, where values below 0.5 indicate dense, congestion-prone traffic likely to generate severe delays, while values above 0.5 reflect a transition toward a smoother flow regime. In this case, the evolution of J G,12 reveals that traffic is progressing toward a free-flow state at high speeds, indicating that queues are well controlled and dissipate without significant buildup. In practice, this result suggests that intervention efforts should be strategically concentrated on low-fluidity zones, where targeted actions can be deployed rapidly and effectively to prevent congestion from developing.

The results in Figure 2 show that the assumption of variation in the vehicle masses m 1 and m 2 remains valid, which supports an integrated approach adapted to contemporary transportation challenges. The aerodynamic speed v a1 varies from 22 m/s to 3.75 m/s2 and v a2 decreases from 22 m/s to 21.89 m/s. The aerodynamic acceleration γ a1 varies from 2.5 m/s2 to 2.486 m/s2 and γ a2 varies from 2.59 m/s to 2.576 m/s2. These results emphasize the importance of avoiding collision risks due to interactions between vehicles on the road. This may be desirable for several reasons: maintaining passenger comfort and avoiding sudden maneuvers; promoting cautious or fuel-efficient driving aimed at minimizing fuel consumption and reducing vehicle wear; serving as a precautionary indicator to prevent damage; and reducing the risk of losing control of the vehicle.

Figure 1. Evolution of the objective function and infeasibility errors.

Figure 2. Evolution of masses, the aerodynamic velocities, and accelerations of the vehicles.

Figure 3 shows that the primary thrust control δ x varies from 0.1 to 0.8 for both vehicles and also exhibits a steady behavior around the value 0.8. The roll control δ l1 ranges from −8.48142 × 10−15 to 0.00321695, while δ l2 ranges from −2.4446 × 10−16 à −4.11088 × 10−8, which demonstrates the stability of the second vehicle and indicates safe, secure driving maneuvers. The pitch control δ m1 varies from 0 to 0.02, whereas δ m2 varies from 0 to 0.095. The yaw command δ n1 ranges from 0 to 0.35, while δ n2 ranges from 0 to −0.036. The results obtained for pitch and yaw controls demonstrate directional stability for both vehicles and suggest stable and safe driving, with a good balance of forces and effective vehicle handling, which is essential for safety and comfort.

Figure 3. Controls of the vehicles.

Figure 4 shows that the longitudinal speed u 1 decreases from 22 m/s to 21.8603 m/s while u 2 varies from 22 m/s to 25.7809 m/s. The lateral speed v 1 varies from 3 m/s to 5 m/s whereas v 2 decreases from 3.5 m/s to 3.49678 m/s. The vertical speeds w 1 and w 2 both slightly decrease around 1.5 m/s to approximately 1.49221 m/s for the two vehicles. The roll rate p 1 ranges from 0/s to 0.0332393/s while p 2 ranges from 0/s to 0.000424323/s. According to SAE and ISO standards, these results indicate upstream congestion slots and a situation where the vehicles experience an increase in roll associated with a lateral maneuver.

Figure 4. Time evolution of the aerodynamic velocity components and the roll rate of the vehicles.

Figure 5 shows that the pitch rate q 1 evolves from −5.45 × 10−7˚/s to 3.37 × 10−7 while q 2 varies from 0˚/s to −5.48 × 10−9˚/s. The yaw rate r 1 ranges from 0˚/s to 3.427 × 10−7˚/s while r 2 ranges from 0˚/s to 1.01 × 10−7˚/s. The roll angles θ 1 and θ 2 undergo a slight decrease from 5˚ à 4.97˚ for both vehicles. The pitch angles ϕ 1 vary from 5˚ to 5.11˚ while ϕ 2 vary from 5˚ to 4.97˚. These results reveal a decrease in pitch accompanied by an increase in yaw, indicating an interaction between longitudinal dynamics and lateral maneuvers. This suggests that the vehicles reduce their lateral inclination while adjusting their nose-down/up attitude to follow a new trajectory, requiring an analysis of control actions for precise diagnosis.

Figure 5. Time evolution of pitch rate, yaw rate, roll angle, and pitch angle.

Figure 6 shows that the yaw angle ψ varies slightly from 5 to 4.97 for both vehicles. The longitudinal and lateral separations are 75 m and 1 m, respectively. The position X G,1 o increases from 50 m to 58.14 m while X G,2 o varies from 125 m to 133.5 m for the second vehicle. The position Y G,1 o changes from 20 m to 20.1149 m while Y G,2 o varies from 21 m to 21.1069 m for the second vehicle. The position Z G o varies from 0m to 0.0058 m for both vehicles. These results show a very small negative change in the yaw angle, reflecting a very slight negative-directed rotation of the vehicle. The position variations indicate that the vehicles move forward relative to an observer attached to the inertial frame.

Figure 6. Yaw angle evolution and 3D position of the centers of mass G1 and G2.

Figure 7 shows the evolution of the components of the adjoint state vector. The adjoint state is an additional dimensionless variable that can be interpreted as a dynamic multiplier measuring the marginal value of the state with respect to the cost. Some corresponding components are constant for both vehicles and oscillate only around the values −1, 0, and 1, this result indicates numerical stability.

Figure 7. Evolution of the adjoint state components.

To further highlight the effectiveness of the penalized PMP approach, a comparison with a standard non-symplectic discretization applied to the same scenario reveals a clear advantage in terms of solution quality and dynamical consistency. Unlike conventional discretization schemes, which do not inherently respect the geometric structure of the optimal control problem and may thus yield suboptimal or numerically inconsistent trajectories, the penalized PMP approach is rigorously grounded in Pontryagin’s necessary conditions of optimality. Although this theoretical rigor comes at the cost of increased implementation complexity requiring the resolution of a two-point boundary value problem and careful handling of the adjoint dynamics. It ultimately delivers a more reliable and physically meaningful control law, particularly in the presence of state constraints enforced through penalization.

6. Conclusions

This paper demonstrates that Pontryagin’s Maximum Principle provides a powerful foundation for optimizing the dynamics of vehicle queues in road traffic systems. By integrating traffic-flow modeling with optimal control theory, we derive optimal feedback strategies under a penalized joint formulation that significantly reduce delays and enhance throughput while accounting for constraints and environmental factors.

Beyond the conceptual framework, two ingredients prove especially important for practical and reliable performance. First, exterior penalization plays a crucial role in enforcing the feasibility and robustness of the optimized queue dynamics, ensuring that the numerical solution remains physically meaningful and constraint-compliant. Second, the use of symplectic PRK schemes is key to obtaining accurate and stable long-horizon simulations of the resulting Hamiltonian (state-adjoint) system. In particular, these structure-preserving integrators improve numerical behavior and reliability when computing optimal strategies for complex traffic scenarios.

Overall, the combination of PMP-based indirect optimization with exterior penalization and symplectic PRK discretizations offers an effective methodology for advancing queue management and traffic efficiency, and it provides useful insights for future developments in transportation optimization, extension to larger networks, tighter constraint handling, and real-time implementations.

Acknowledgements

The first author acknowledges that this research received no external funding.

Appendix

Table A1. Model parameter values.

Value

Denomination

Notation

Vehicule 1

Vehicule 2

Vehicle inertia moments (kgm−2)

I xx

1739.3125

1814.2

I yy

6707.41

8581.35

I zz

6744.71

8621

Vehicule length

L

4.84 m

5.33 m

Vehicule width

t

1.885 m

1.85 m

Vehicule height

H

1.845 m

1.81 m

Motor mechanical efficiency

η m

≈0.9

≈0.9

Fuel Conversion efficiency

η c

≈0.4

≈0.4

Basic aerodynamic drag coefficient

C a 0

≈0.35

≈0.35

Basic lateral force coefficient

C y 0

≈0.1

≈0.1

Basic vertical force coefficient

C z 0

≈-0.1

≈-0.1

Basic Roll moment coefficient

C l 0

≈0.1

≈0.1

Fuel cosumption coefficient

C cse

≈1 × 10−4 kg/m

≈1 × 10−4 kg/m

Internal motor power

P i

2 × 105 W

2.05 × 105 W

Throttle ejection speed

v e

30 m/s

30.5 m/s

Calorific value of fuel

LH V fuel

≈42.7 × 105 J/kg

≈42.7 × 105 J/kg

Gas outlet pressure

P e

1.0 × 105 Pa

1.01 × 105 Pa

Exhaust outlet surface

A e

≈0.1 m2

≈0.12 m2

Vehicle frontal area

A f

2.89 m2

3.01 m2

Table A2. Limit values for Vehicle state variables and controls.

Denomination

Minimum value

Maximum value

Mass of the vehicle 1

m 10 =3000kg

m 1f =2500kg

Mass of the vehicle 2

m 20 =3250kg

m 2f =2500kg

Aerodynamc vehicle 1 speed

v a 1 min =0m/s

v a 1 max =55m/s

Aerodynamc vehicle 2 speed

v a 2 min =0m/s

v a 2 max =50m/s

Aerodynamc vehicles acceleration

γ a 1 min = γ a 2 max =5m/ s 2

γ a 1 max = γ a 2 max =5m/ s 2

Longitudinal vehicle 1 speed

u 1min =22m/s

u 1max =55m/s

Longitudinal vehicle 2 speed

u 2min =22m/s

u 2max =45m/s

Lateral vehicles speed

v 1min = v 2min =5m/s

v 1max = v 2max =5m/s

Vertical vehicles speed

w 1min = w 2max =3m/s

w 1min = w 2max =3m/s

Vehicle Roll velocity

p 1min = p 2min =5˚/s

p 1max = p 2max =5˚/s

Vehicle Pitch velocity

q 1min = q 2min =2˚/s

q 1max = q 2max =2˚/s

Vehicle Yaw velocityt

r 1min = r 2min =2˚/s

r 1max = r 2max =2˚/s

Roll angles

θ 1min = θ 2min =15˚

θ 1max = θ 2max =15˚

Pitch angles

ϕ 1min = ϕ 2min =3˚

ϕ 1max = ϕ 2max =30˚

Yaw angles

ψ 1min = ψ 2min =0˚

ψ 1max = ψ 2max =45˚

Vehicle longitudinal position

X G 1 min = X G 2 min =0m

X G 1 max = X G 2 max = 10 3 m

Vehicle lateral position

Y G 1 min = Y G 2 min = 10 2 m

Y G 1 max = Y G 2 max = 10 2 m

Vehicle vertical position

Z G 1 min = Z G 2 min =0m

Z G 1 max = Z G 2 max =10m

Thrust control

δ x 1 min = δ x 2 min =0.1

δ x 1 max = δ x 2 max =0.8

Roll control

δ l 1 min = δ l 2 min =0.0275

δ l 1 max = δ l 2 max =0.0275

Pitch control

δ m 1 min = δ m 2 min =0

δ m 1 max = δ m 2 max =0.095

Yaw control

δ n 1 min = δ n 2 min =0.036

δ n 1 max = δ n 2 max =0.35

Conflicts of Interest

The authors have no conflicts of interest to declare concerning the publication of this paper.

References

[1] Papamichail, I., Kampitaki, K., Papageorgiou, M. and Messmer, A. (2008) Integrated Ramp Metering and Variable Speed Limit Control of Motorway Traffic Flow. IFAC Proceedings Volumes, 41, 14084-14089.[CrossRef]
[2] Daganzo, C.F. (1994) The Cell Transmission Model: A Dynamic Representation of Highway Traffic Consistent with the Hydrodynamic Theory. Transportation Research Part B: Methodological, 28, 269-287.[CrossRef]
[3] Swaroop, D. and Hedrick, J.K. (1996) String Stability of Interconnected Systems. IEEE Transactions on Automatic Control, 41, 349-357.[CrossRef]
[4] Rajamani, R. (2012) Vehicle Dynamics and Control. 2nd Edition, Springer.[CrossRef]
[5] Miculescu, D. and Karaman, S. (2014) Polling-Systems-Based Control of High-Performance Provably-Safe Autonomous Intersections. 53rd IEEE Conference on Decision and Control, Los Angeles, 15-17 December 2014, 1417-1423.[CrossRef]
[6] Zhao, L., Malikopoulos, A. and Rios-Torres, J. (2018) Optimal Control of Connected and Automated Vehicles at Roundabouts: An Investigation in a Mixed-Traffic Environment. IFAC-PapersOnLine, 51, 73-78.[CrossRef]
[7] Bryson, A.E., Ho, Y. and Siouris, G.M. (1979) Applied Optimal Control: Optimization, Estimation, and Control. IEEE Transactions on Systems, Man, and Cybernetics, 9, 366-367.[CrossRef]
[8] White, D.H. (2012) Optimal Control—Third Edition, F. L. Lewis et al, John Wiley and Sons, the Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, UK. 2012. 540pp. £100. ISBN 978-0-470-63349-6. The Aeronautical Journal, 116, 770-774.[CrossRef]
[9] Nocedal, J. and Wright, S.J. (2006) Numerical Optimization. 2nd Edition, Springer.
http://egrcc.github.io/docs/math/numerical-optimization.pdf
[10] Wächter, A. and Biegler, L.T. (2005) On the Implementation of an Interior-Point Filter Line-Search Algorithm for Large-Scale Nonlinear Programming. Mathematical Programming, 106, 25-57.[CrossRef]
[11] Hairer, E., Lubich, C. and Wanner, G. (2006) Geometric Numerical Integration: Structure-Preserving Algorithms for Ordinary Differential Equations. Springer, 31 p. https://link.springer.com/book/10.1007/3-540-30666-8[CrossRef]
[12] Sanz-Serna, J.M. and Calvo, M.P. (1995) Numerical Hamiltonian Problems. SIAM, 207 p.
[13] Butcher, J.C. (1987) The Numerical Analysis of Ordinary Differential Equations: Runge-Kutta and General Linear Methods. John Wiley & Sons.
[14] Laurent-Varin, J. (2005) Calcul de trajectoires optimales de lanceurs spatiaux réutilisables par une méthode de point intérieur. Ph.D. Thesis, Ecole de polytechnique.
https://theses.hal.science/tel-01579175v1
[15] Hairer, E., Lubich, C. and Wanner, G. (2002) Geometric Numerical Integration: Structure-Preserving Algorithms for Ordinary Differential Equations. 2nd Edition, Springer, 31 p.
[16] Zhang, Y. and Cassandras, C.G. (2019) Decentralized Optimal Control of Connected Automated Vehicles at Signal-Free Intersections Including Comfort-Constrained Turns and Safety Guarantees. Automatica, 109, Article ID: 108563.[CrossRef]
[17] Hajji, O. (2003) Contribution au développement de méthodes d’optimisation stochastiques. application à la conception des dispositifs électrotechniques. Mémoire de thèse de Doctorat, Université des sciences et technologies de Lille.
https://api.semanticscholar.org/CorpusID:171738749
[18] Bonnans, J.F. and Guilbaud, T. (2003) Using Logarithmic Penalties in the Shooting Algorithm for Optimal Control Problems. Optimal Control Applications and Methods, 24, 257-278.[CrossRef]
[19] Vilmart, G. (2005) Étude d’intégrateurs géométriques pour des équations différentielles. Ph.D. Thesis, University of Rennes 1.
[20] Poincaré, H. (1893). Les méthodes nouvelles de la mécanique céleste (Vol. 2). Gauthier-Villars.
[21] Chartier, P. (2000) Méthodes numériques pour les équations différentielles ordinaires et algébriques avec application aux systèmes hamiltoniens. Ph.D Thesis, Université de Rennes 1.
[22] Hairer, E., Norsett, S.P. and Wanner, G. (1993) Solving Ordinary Differential Equations I. Nonstiff Problems. Springer, 1 p.[CrossRef]
[23] Hairer, E. and Wanner, G. (1996) Solving Ordinary Differential Equations II. Stiff and Differential-Algebraic Problems. Springer, 14 p.[CrossRef]
[24] Bigirimana, M., Nahayo, F., Haddou, M. and Niyongere, A. (2025) A Nonlinear Mathematical Model for Dynamic Traffic Flow Optimization: A Stem Innovation. Open Journal of Optimization, 14, 131-146.[CrossRef]
[25] Rajesh, R. (2012) Vehicle Dynamics and Control. Springer.
http://www.springer.com/series/1161
[26] Helbing, D. (2001) Traffic and Related Self-Driven Many-Particle Systems. Reviews of Modern Physics, 73, 1067-1141.[CrossRef]
[27] Chandeok Park, and Scheeres, D.J. (2004) Solutions of Optimal Feedback Control Problems with General Boundary Conditions Using Hamiltonian Dynamics and Generating Functions. Proceedings of the 2004 American Control Conference, Boston, 30 June-2 July 2004, 679-684.[CrossRef]
[28] Hager, W.W. (2000) Runge-Kutta Methods in Optimal Control and the Transformed Adjoint System. Numerische Mathematik, 87, 247-282.[CrossRef]
[29] Wong, J.Y. (2022) Theory of Ground Vehicles. 5th Edition, John Wiley & Sons.
[30] Douglas, G.I. (2003) A New Approach to Estimate Congestion Impacts for Highway Evaluation: Effects on Fuel Consumption and Vehicle Emissions. Ph.D. Thesis, University of Auckland.
[31] Greenwood, I.D., Dunn, R.C. and Raine, R.R. (2007) Estimating the Effects of Traffic Congestion on Fuel Consumption and Vehicle Emissions Based on Acceleration Noise. Journal of Transportation Engineering, 133, 96-104.[CrossRef]
[32] Alberto, B. (2019) Advances in Turbocharged Racing Engines: An SAE Technical Paper Compilation. SAE International.
https://www.amazon.com/Advances-Turbocharged-Engines-Alberto-Boretti/dp/0768000149

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.