Skip to content
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

time based vehicle utilization #42

Open
emilyeros opened this issue Apr 23, 2019 · 1 comment
Open

time based vehicle utilization #42

emilyeros opened this issue Apr 23, 2019 · 1 comment

Comments

@emilyeros
Copy link
Contributor

emilyeros commented Apr 23, 2019

Vehicle utilization is described as "total vehicle on-street time divided by total trip duration for all vehicles"

Here's an example of one day of data:
Screen Shot 2019-04-23 at 9 42 23 AM

Let's say there are 10 operational hours in this day. Then total vehicle on-street time = 624 vehicles x 10 hrs = 6240 hours

Total trip duration for all vehicles = 22m7s per trip / 60 min per hr * 544 trips = 200 hours

I think there's an error in the description; the numerator and the denominator should be reversed, otherwise you'll always get a utilization of over 100%. But even if I do that, I'd have:

utilization = 200 hours / 6240 hours = 3.2%. Not 34%, like in the example.

I think the calculation has a math error somewhere.

@morganherlocker
Copy link
Contributor

Vehicle Utilization is currently calculated with the following formula:

Math.round((ActiveVehicles / TotalVehicles) * 100)

This is different than the time based utilization calculation currently described in the docs. I'm going to update the docs to accurately reflect this, then prioritize moving the calculation to the new metric. This will require calculating the total time available, which is not currently implemented.

@morganherlocker morganherlocker changed the title vehicle utilization - not calculating as expected? time based vehicle utilization Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants