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

jhrf/#1127 ev charging filter results #1993

Merged

Conversation

zneedell
Copy link
Collaborator

@zneedell zneedell commented Jul 22, 2019

Filter the parking stalls returned from parking search based on context to allow or not allow vehicles to park in stalls with chargers. Intended to keep chargers from filling up with non-EVs and to ensure that EVs find any available chargers when they need to charge.


This change is Reviewable

Copy link
Collaborator

@johanneshiry johanneshiry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me - unsure about the lines where I made a comment but it also looks fine in combination with the code below - just to be sure maybe @colinsheppard can take a short look at it that the introduction of "charge" and the change from "work" to "charge" doesn't break anything in RideHailing

@@ -534,7 +534,7 @@ class RideHailAgent(
"installedCapacity" -> UtilityFunctionOperation("multiplier", -beta3)
)
val mnl = new MultinomialLogit[ParkingZoneSearch.ParkingAlternative, String](Map.empty, commonUtilityParams)
val inquiry = ParkingInquiry(destinationUtm, "work", 0.0, mnl, 0.0)
val inquiry = ParkingInquiry(destinationUtm, "charge", 0.0, mnl, 0.0, Option(vehicle))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea if this is correct or not - maybe @colinsheppard knows if this is fine?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, can't tell by glancing at it

val destinationUtm = rideHailAgentLocation.currentLocationUTM.loc
val inquiry = ParkingInquiry(destinationUtm, "work")
val inquiry = ParkingInquiry(destinationUtm, "charge", Option(beamVehicle))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here ...

@johanneshiry johanneshiry merged commit cfd6037 into jhrf/#1127-ev-charging Jul 22, 2019
@JustinPihony JustinPihony deleted the jhrf/#1127-ev-charging-filter-results branch July 23, 2019 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants