-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Estimate the total travel time for all the vehicles #1112
Comments
Thanks a lot. Yes, I am expecting a plot something similar to this. Here I am scharing my event hander. https://github.com/MadushaSammani/TravelTimeEstimate.git I do not use absolute time. I used relative time. First person start to travel at 0:0:0. I used only PersonArrivalEventHandler. So I can find the time for last agent to arrive. |
Thanks for the code example. I think the script you have written is not calculating what you want.
your handler stores the event time and a counter. This fails to capture the duration, as you are just storing the time at which the event happened. You could implement something along the following, which stores the departure time with the person id. Then, on arrival, the duration of the leg is calculated and stored in a list. With this, you would be able to plot the travel times by trip number, which are sorted by arrival time.
Then you can use that handler like the following:
Another option would be to utilize the |
I need to analyze the total travel time for all vehicles.
In each scenario, I try to increase the vehicle count by 10%, 20%, 30%, and so on.
Then, I calculated the travel time for each scenario and plotted it in a scatterplot to see how vehicles' estimated travel time varied.
My scatterplot shows a linear relationship. Is this correct? I was hoping that, before plotting in, there would be a non-linear relationship.
To calculate the total time to travel, I only considered PersonArrivalEventHandler.
The text was updated successfully, but these errors were encountered: