You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dsf/headers/RoadDynamics.hpp
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -233,16 +233,15 @@ namespace dsf {
233
233
/// @brief Optimize the traffic lights by changing the green and red times
234
234
/// @param optimizationType TrafficLightOptimization, The type of optimization. Default is DOUBLE_TAIL
235
235
/// @param logFile The file into which write the logs (default is empty, meaning no logging)
236
-
/// @param threshold double, The minimum difference between green and red queues to trigger the local optimization (n agents - default is 0)
237
-
/// @param ratio double, The ratio between the self-density and neighbour density to trigger the non-local optimization (default is 1.3)
238
-
/// @details The function cycles over the traffic lights and, if the difference between the two tails is greater than
239
-
/// the threshold multiplied by the mean capacity of the streets, it changes the green and red times of the traffic light, keeping the total cycle time constant.
240
-
/// The optimizationType parameter can be set to SINGLE_TAIL to use an algorith which looks only at the incoming street tails or to DOUBLE_TAIL to consider both incoming and outgoing street tails.
236
+
/// @param percentage double, the maximum amount (percentage) of the green time to change (default is 0.3)
237
+
/// @param threshold double, The ratio between the self-density and neighbour density to trigger the non-local optimization (default is 1.3)
238
+
/// @details The local optimization is done by changing the green time of each traffic light, trying to make it proportional to the
239
+
/// queue lengths at each phase. The non-local optimization is done by synchronizing the traffic lights which are congested over threshold.
0 commit comments