Abstract

Mathematical Programs with Complementarity Constraints (MPCC) finds many applications in areas such as engineering design, economic equilibrium, and mathematical theory itself. In this work, we consider a queuing system model resulting from a single signalized traffic intersection regulated by pretimed control in an urban traffic network. The model is formulated as an MPCC problem and may be used to ascertain the optimal cycle and the green split allocation. This MPCC problem is also formulated as its NLP equivalent reformulation. The goal of this work is to solve the problem, using both MPCC and NLP formulations, minimizing two objective functions: the average queue length over all queues and the average waiting time over the worst queue. The problem was codified in AMPL and solved using some optimization software packages.

1. Introduction

Mathematical Programs with Complementarity Constraints (MPCC) is a subclass of more general Mathematical Programs with Equilibrium Constraints (MPEC). These kind of constraints may come as a game, a variational inequality, or as stationary conditions of an optimization problem. The main applications areas are engineering and economics [13]. They are so widespread in these areas because the concept of complementarity is synonymous with the notion of system equilibrium. They are very difficult to solve as the usual constraint qualifications necessary to guarantee the algorithms convergence fail in all feasible points [4]. This complexity is caused by the disjunctive nature of the complementarity constraints.

Some nonlinear approaches to solve MPCC have been proposed, starting with the smoothing scheme [5, 6], the regularization scheme [7, 8], the interior point methods [9], the penalty approaches [1012], and the “elastic mode” for nonlinear programming in conjunction with a sequential quadratic programming (SQP) algorithm [13]. In Fletcher et al.’s study [14], the quadratic convergence of SQP is guaranteed, near a stationary point, under relatively mild conditions.

As the number of vehicles and the need for transportation grow, traffic light control can be used to control the flow of the traffic in urban environments. De Schutter and De Moor [15] study the optimal traffic control problem of a two two-way streets intersection. These authors derive an approximate model that describes the evolution of the queues lengths as a continuous function of time.

Starting from this model it is possible to compute the traffic light switching scheme that minimizes a criterion such as average queue length over all queues, the average waiting time over the worst queue, or average waiting time.

A single signalized intersection regulated by pretimed control problem with four traffic streams is considered. This problem is formulated as an MPCC and also as its NLP equivalent reformulation. Some computational experiments using the FilterMPEC, the KNITRO, and the MATLAB optimization toolbox are performed.

This paper is organized as follows. Next section defines the MPCC problem and its NLP reformulation. Some optimal issues are presented in Section 3. The traffic model formulation using two objective functions is described in Section 4. In Section 5, the optimization solvers main characteristics are presented. Numerical experiments using the solvers are reported in Section 6. Some conclusions and future work are carried out in Section 7.

2. Problem Definition

We consider Mathematical Program with Complementarity Constraints : where and are the nonlinear objective function and the constraint functions, respectively, assumed to be twice continuously differentiable. and are two disjoined finite index sets with cardinalities and , respectively. A decomposition of the variables is used where (control variables) and (state variables). The expressions are the complementarity constraints. is a finite index set with cardinality .

One attractive way of solving is to replace the complementarity constraints by a set of nonlinear inequalities, such as ,   , and then solve the equivalent nonlinear program (NLP):

3. Optimal Issues

The NLP formulation has no feasible point that strictly satisfies the inequalities. This fact implies that the Mangasarian-Fromovitz constraint qualification (MFCQ) is violated at every feasible point [16]. This failure has consequences: the multiplier set is unbounded, the central path fails to exist, the active constraints normals are linearly dependent, and linearizations of the NLP formulation can be inconsistent arbitrarily close to the solution. Recent developments show that there is a relationship between strong stationarity defined by Scheel and Scholtes and the Karush-Kuhn-Tucker (KKT) points. This relationship established convergence of SQP methods for MPCC formulated as NLP. Some optimality concepts used in this work are based on the study of Fletcher et al. [14].

4. Traffic Model Formulation

In this section, we briefly describe the traffic model and present the MPCC formulation—further details could be consulted in the work of Ribeiro and Simões [17]. The traffic model considers an intersection with four traffic streams: , , , and which are controlled by a traffic signal: , , , and , respectively. A set is considered. The intersection presented in Figure 1 is controlled by two phases (A and B). During Phase A, the traffic signals and have green light and the same occurs in Phase B for and . In both phases, the cycle has 3 stages: green, yellow, and red. The arrival rate of vehicles in traffic stream at instant time is for . When the traffic signal is green, the departure rate in traffic stream at instant time is , and in the case of the traffic being yellow, the departure rate in traffic stream at instant is for . Let , , , be the time instants when a change in the traffic signal occurs.

The duration of the yellow time and clearance time is fixed and set equal to and , respectively. The time instants when traffic signals and initiate a green period and and begin a red period are , , , . The time instants when traffic signals and initiate a red period and and begin a green period are , , , . Thus, and , .

Therefore, represents the green time in traffic signals and and represents the red time at and , and a cycle length is equal to .

The traffic problem has the following MPCC formulation: where the objective function represents the average queue length over all queues. Since short cycles imply more stops and long cycles causes long delays, maximum and minimum durations for the red and green time ( and ) are considered as simple bound constraints. The number of vehicles in traffic stream at time instant is represented by . The maximum queue length in each traffic stream is and is the time periods considered.

Another situation was considered and has the following formulation: In this case, the goal is to minimize the average waiting time over the worst queue, and the constraints are the same as the traffic problem .

In addition, the following vectors are defined: where for each traffic stream, that is, for :(i) is the average arrival rate; (ii) is the average departure rate when the traffic signal is green; (iii) is the average departure rate when the traffic signal is yellow; (iv) is the queue length at time instant .

These two MPCC problems, and , are reformulated into their NLP equivalent formulation . Next section presents three optimization codes used to solve these two traffic situations in both formulations: and .

5. NLP Solvers

In this section, we present three solvers, two of them are available on the NEOS Server platform [18, 19], and the third one is available on MATLAB software. The NEOS Server is a free internet-based service for solving optimization problems with several solvers representing the state of the art in optimization software.

5.1. FilterMPEC

FilterMPEC arises from the work of Fletcher and Leyffer [20] to solve Mathematical Programs with Equilibrium Constraints (MPECs) in AMPL format [21]. FilterMPEC is an extension of filterSQP, implementing a SQP solver which is suitable for solving medium-scale nonlinearly constrained problems.

5.2. KNITRO

KNITRO was developed for the solution of general nonconvex, nonlinearly constrained optimization problems in AMPL format [22]. It is also effective for problems with complementarity constraints. KNITRO provides three algorithms, two of them use the interior point methods, and the other is based on an active set method.

5.3. MATLAB

The fmincon routine from MATLAB optimization toolbox [23] is a gradient-based method to solve problems with objective and constraint functions twice continuously differentiable. It uses one of four algorithms: active-set, interior point method, SQP, or trust-region-reflective. From these algorithms, we use the SQP algorithm to solve . To connect the modelling language AMPL [24] to the fmnicon routine, a MATLAB mex function was used.

6. Numerical Experiments

This section summarizes the results of the numerical tests, solving the traffic intersection problem with two different approaches: the first approach, used by FilterMPEC and KNITRO, the traffic problem is solved using the formulation; the second approach employed by fmincon routine uses reformulation. The MATLAB version was 7.11.0 (R2010b), and the computational experiments were made on a 2.26 GHz Intel Core 2 Duo with 8 GB of RAM, MAC OS 10.6.8 operating system. For all the solvers, the default options were used.

Both traffic situations and were tested using ten instances of , corresponding to problems P1–P10 reported in Table 1. Furthermore, was considered, which corresponds to a period of time over thirty cycles. The other parameters used are

Tables 2 and 3 report the optimization results of traffic problem and traffic problem , respectively: the red split time , the green split time , and objective function value for the three solvers.

Table 4 presents the number of iterations (it) achieved by the solvers for both traffic situations and . Among the analysed solvers, FilterMPEC is the one that presents the best performance solving the traffic situation . For traffic situation , KNITRO needs more iterations than the others solvers.

7. Conclusions and Future Work

A traffic model was studied and codified in AMPL language which could be easily connected to nonlinear programming solvers. Two approaches were used to solve the traffic problem: the formulation, solved by FilterMPEC and KNITRO on NEOS Server and the reformulation solved by fmincon routine from MATLAB. The model for traffic situations and was efficiently solved by these solvers using both approaches and .

As a first stage of future work, we intend to introduce a probabilistic distribution in arrival rate instead of considering it as a constant value. Another idea is to allow that vehicles to turn (right or left) and not follow just ahead. With minor changes, other objective functions can be easily tested: average queue length over the worst queue, worst case queue length and average waiting time over all queues. Another goal of this work is to collect real data from a signalized traffic intersection in a city in order to test the model in a real situation.

Acknowledgments

This work is funded by FEDER funds through Operational Programme for Competitiveness Factors—COMPETE and National Funds through FCT—Foundation for Science and Technology in Project scope: FCOMP-01-0124-FEDER-022674 (R&D unit Algoritmi). The work is also supported by PEst-OE/MAT/UI4080/2011. The authors are very grateful to all the financial support.