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

[Policy API] support utilization policies #620

Closed
jean-populus opened this issue Jan 30, 2021 · 6 comments
Closed

[Policy API] support utilization policies #620

jean-populus opened this issue Jan 30, 2021 · 6 comments
Labels
Policy Specific to the Policy API
Milestone

Comments

@jean-populus
Copy link
Collaborator

jean-populus commented Jan 30, 2021

Is your feature request related to a problem? Please describe.

A few cities have policies around minimum utilization (# rides / # vehicles) but this isn't currently possible to convey using the rule_types which are: count, time, speed, rate, user. In this case we need two different counts - one for trips and one for total vehicles - and the policy is a ratio of the two counts. Cities also would like to specify a time period over which to measure - for example, is it a daily min or a 7 day average min?

Describe the solution you'd like

Is this a breaking change

  • I'm not sure

Impacted Spec

  • policy

Describe alternatives you've considered

Additional context

@schnuerle schnuerle added the Policy Specific to the Policy API label Feb 2, 2021
@jean-populus
Copy link
Collaborator Author

here are some examples we found in our initial survey, some may no longer be current:

  • Austin: Minimum average of 2 trips per day, over a month
  • Santa Monica: "Minimum Utilization Rate (MUR)" is minimum average number of daily rides per device that an operator must achieve in order to maintain or increase fleet size. Utilization is calculated by dividing the sum of total daily rides within the jurisdiction over a one-week period by the total devices available daily during the same timeframe.
  • San Francisco: The SFMTA will monitor the number of trips/scooter/day for the entire Service Area, as well as subareas. Based on these observations, the SFMTA will develop a trips/scooter/day threshold. To be eligible for a fleet size expansion, permittees must demonstrate strong device usage by achieving a monthly average above this threshold, verified using the SFMTA’s Emerging Mobility
    Application Programming Interface. The SFMTA will use a monthly average of each day’s total number of trips divided by the operator’s total permitted fleet.
  • Tucson: Minimum Utilization Rate: Minimum average number of daily rides per device calculated by dividing the sum of total daily rides within City over a 7-day period by the total devices, excluding devices deployed in Opportunity Areas, available daily during the same timeframe. For Dynamic Capping purposes, the MUR for Electric Scooters is three (3) rides per day per device for expansion.

@marie-x
Copy link
Collaborator

marie-x commented Feb 5, 2021

  • Austin: 2 trips per day per vehicle? What happens if the provider falls below that threshold?
  • Santa Monica: do you have specific numbers for their minimum rate, and how exceeding that rate translates into a larger fleet size cap?
  • San Francisco: this looks like a Metrics application more than a Policy application, maybe? What idea would you try to express in Policy?
  • Tucson: Seems very similar to Austin and Santa Monica, is that accurate?

@schnuerle
Copy link
Member

Notes from the working group meeting discussions.

  • Even trickier since this involves two counts: trips and devices
  • Using a Metrics API could make this easier. However, some metrics may be difficult to support. What are the simplest things to be measured vs complex
  • Should we restrict Policy to rules that can be calculated via Metrics? But don’t want to replicate Metrics in policy.
  • In order of complexity: Could 1) add things into policy 2) add well established metrics 3) dynamic metrics calculations
  • Jean offered to share what Populus has been tracking policy-wise pulled from all cities

@jean-populus if you can answer the questions above, maybe @Karcass can see if these scenarios are possible now in Policy with some examples?

@schnuerle schnuerle added this to the 1.2.0 milestone Feb 12, 2021
@jean-populus
Copy link
Collaborator Author

jean-populus commented Feb 12, 2021 via email

@schnuerle
Copy link
Member

@avatarneil and @Karcass Could you take a look at this, like you mentioned on the WG call last week? Thank you.

@jean-populus
Copy link
Collaborator Author

Posting an update from presentation MDS Policy Extensions 15 July 2021

  • Until we can rigorously define “utilization” it will be difficult to have a utilization policy
  • Raises interesting possibilities for metrics-based Rules, “measure against this Metric”
  • Proposal: Move forward on Metrics-based Rules (possibly 1.2 timeframe, if not, then 2.0)
  • Question: Can we compose Metrics inside Policy, if not, how do we refer-to/recycle the Metrics definitions? Should Metrics definitions be separated from the Metrics API?

FYI I'd be in favor of deferring this for now as Utilization is not currently a part of metrics and seems like we should have a larger convo about metrics & policy.

@schnuerle schnuerle modified the milestones: 1.2.0, 2.0.0 Jul 28, 2021
@schnuerle schnuerle modified the milestones: 2.0.0, Future Apr 13, 2023
@schnuerle schnuerle reopened this Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Policy Specific to the Policy API
Projects
None yet
Development

No branches or pull requests

3 participants