Research Article
Distributed Cooperative Backpressure-Based Traffic Light Control Method
Algorithm 1
The algorithm of intersection i for activating phase decision and conflicts resolution.
If SelectedStrategy.DownstreamIntersection1 = 0 And SelectedStrategy.DownstreamIntersection2 = 0 Then | Intersectioni.DeterminedFlag = True | Intersectioni.SelectedPhase = SelectedStrategy.phase | Let the selected phase be the activating phase in the next time slot. | Broadcast the decision of Intersectioni to the adjacent intersections. | End If | If Intersectioni.DeterminedFlag = False Then | If STLCAi receives the decisions from adjacent intersections Then | For each AdjacentIntersection of Intersectioni | If AdjacentIntersectionj.DetermineFlag = True Then | Release the strategies of Intersectioni conflicting with AdjacentIntersectionj.SelectedPhase | End If | Next | Reselect the Intersectioni.SelectedStrategy with maximum pressure from the available strategies | Broadcast Intersectioni.SelectedStrategy to the adjacent intersections. | End If | Elect the maximum pressure strategy among the available strategies of all intersections using distributed election algorithm. | If Intersectioni.SelectedStrategy is the elected strategy with maximum pressure Then | Intersectioni. DeterminedFlag = True | Intersectioni. SelectedPhase = SelectedStrategy.phase | Let the selected phase be the activating phase in the next time slot. | Broadcast the decision of Intersectioni to the adjacent intersections. | End If | End If |
|