-
Notifications
You must be signed in to change notification settings - Fork 57
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
jhrf/#1127 ev charging filter results #1993
Conversation
There was a problem hiding this 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)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here ...
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