In the document, it says whenever an agent switches its phase there will be a 5 seconds 'all red' phase to prevent any traffic. Thus, I assume if we switch the phase with a period of less than 5, there will be no vehicles passing at all. However, if we change the green_sec in the starter agent from 5 to 2, the delay_index decreases, meaning there are still vehicles passing through. Did I miss something?
In the document, it says whenever an agent switches its phase there will be a 5 seconds 'all red' phase to prevent any traffic. Thus, I assume if we switch the phase with a period of less than 5, there will be no vehicles passing at all. However, if we change the
green_sec
in the starter agent from 5 to 2, thedelay_index
decreases, meaning there are still vehicles passing through. Did I miss something?