Reputation: 37
How to implement longest-queue-first rule for traffic lights in SUMO or FLOW?
It seems SUMO only supports three kind of traffic light, which is not flexible enough.
Upvotes: 0
Views: 282
Reputation: 1105
SUMO has an in-built actuated
traffic light algorithm which in conjunction with lane detectors, prolongs the green phase of the traffic light.
Longest queue first
seems like a rule-based algorithm which can be easily implemented using TraCI
. At the beginning of each phase, you could check the number of waiting vehicles per edge
and set the green phase accordingly.
Upvotes: 1