matsim-libs icon indicating copy to clipboard operation
matsim-libs copied to clipboard

TravelTimeCalculator: how is the travel time calculated for the link without traffic

Open luchengqi7 opened this issue 3 years ago • 0 comments

I am using the TravelTimeCalculator (org.matsim.core.trafficmonitoring.TravelTimeCalculator).

I found out that the travel time for the links where there is no traffic is different to the round-up value (i.e. Math.floor(link.getLength()/link.getFreeSpeed()) + 1). I think we should use the round-up value as that will be the case in our simulation.

I try to track where does the free speed come from, but I lose my track after several layers... Perhaps @mrieser or @dgrether know more about that?

Is it from the line 115 of the TravelTimeDataArray (org.matsim.core.trafficmonitoring.TravelTimeDataArray)? In that case, it seems that no rounding is perfomed...

Thank a lot!

luchengqi7 avatar Nov 05 '21 18:11 luchengqi7