Hostname: page-component-76d6cb85b7-jhrpq Total loading time: 0 Render date: 2026-07-16T07:42:24.845Z Has data issue: false hasContentIssue false

A CASP-Based Solution for Traffic Signal Optimisation

Published online by Cambridge University Press:  12 September 2025

ALICE TARZARIOL
Affiliation:
AICS, University of Klagenfurt, Klagenfurt, Austria (e-mail: alice.tarzariol@aau.at)
MARCO MARATEA
Affiliation:
DeMaCS, University of Calabria, Arcavacata, Italy (e-mail: marco@dibris.unige.it)
MAURO VALLATI
Affiliation:
School of Computing and Engineering, University of Huddersfield, Huddersfield, UK (e-mail: m.vallati@hud.ac.uk)
Rights & Permissions [Opens in a new window]

Abstract

In the context of urban traffic control, traffic signal optimisation is the problem of determining the optimal green length for each signal in a set of traffic signals. The literature has effectively tackled such a problem, mostly with automated planning techniques leveraging the PDDL + language and solvers. However, such language has limitations when it comes to specifying optimisation statements and computing optimal plans. In this paper, we provide an alternative solution to the traffic signal optimisation problem based on Constraint Answer Set Programming (CASP). We devise an encoding in a CASP language, which is then solved by means of clingcon 3, a system extending the well-known ASP solver clingo. We performed experiments on real historical data from the town of Huddersfield in the UK, comparing our approach to the PDDL+ model that obtained the best results for the considered benchmark. The results showed the potential of our approach for tackling the traffic signal optimisation problem and improving the solution quality of the PDDL + plans.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig 1. A diagram of the considered corridor in terms of junctions (circles), links, and boundaries (rectangles). For readability, the map is not correctly scaled.

Figure 1

Listing 1. ASP facts describing the cycle in Figure 2.

Figure 2

Fig 2. Example of cycles of $25$ seconds with two stages for two configurations, j1_c1 and j1_c2.

Figure 3

Listing 2. Encoding part 1 - Define decision points and set configuration.

Figure 4

Fig 3. Example of simulation of junction j1 from Figure 2, with horizon = 48, active_p(0,stage(j1,1)), active_t(0,j1,4) and active_c(0,j1,j1_c1)). S and I are shorthand representations of stages and intergreen times, respectively.

Figure 5

Listing 3. Encoding part 2 - Define active predicates from time $1$ to horizon.

Figure 6

Listing 4. Encoding part 3 - Theory atoms for occupancy and counter.

Figure 7

Fig 4. Task 1 - decision version with bound.

Figure 8

Fig 5. Task 2: optimisation version without bound.