wingsweihua / IntelliLight

IntelliLight: A Reinforcement Learning Approach for Intelligent Traffic Light Control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with duration

Laysest opened this issue · comments

Hi author, thanks for your great work.
But I didn't understand about how to compute the duration metric in your code.
In your paper, the duration is defined that "average travel time vehicles spent on approaching lanes (in seconds)".
In your code: you log this value for each step.

travel_time_duration += (traci.simulation.getCurrentTime() / 1000 - vehicle_dict[vehicle_id].first_stop_time)/60.0

But I didn't understand. Please help me to explain that. Thank you so much.

Regards,
Toan