eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.35k stars 1.36k forks source link

Allow trigger stops by current battery charge #9663

Open palvarezlopez opened 2 years ago

palvarezlopez commented 2 years ago

If a vehicle with electric device stops in a charging station, only leave it if battery charge is (for example) 80%

namdre commented 2 years ago

might be added via new parameters for device.battery to allow battery management:

Mostly useful for vehicles that stay in the simulation without a predefined route (taxi/DRT). In contrast, Vehicles running on a public transport schedule should fit battery management into their regular schedule.

yunpangfloetteroed commented 1 year ago

Hi. The attached ist the basic process concept for seraching charging station and charging E-vehicles, prepared by Pablo, Micha and me. Any comments are welcome. The implementation work is planned to begin at the end of May. image

yunpangfloetteroed commented 1 year ago

Another ticket is open for defining the necessary attributes, #13294

namdre commented 1 year ago

Since this is new and complex behavior which probably isn't useful to all users of the battery device, I think it would be better to put this into a new device (i.e. BatteryManager). The new device can easily check the current / total battery level and plan accordingly. Further advantages:

yunpangfloetteroed commented 1 year ago

I like the idea with batteryManager. We may need to re-arrange the attributes in the batterDevice. Some of the current attributes, e.g. energyConsumed, in a battery device could move to batteryManager...

namdre commented 1 year ago

No. everything that is currently in the battery needs to stay there since the device must continue to work without a battery manager. The manager only monitors the state and adapts vehicle behavior for automatic charging.

behrisch commented 1 year ago

I would propose a new name for the manager: stationFinder. This is agnostic of the fuel type (because we may want to use it for finding gas stations as well) and describes the main functionality better. @namdre @yunpangfloetteroed @palvarezlopez opinions?

yunpangfloetteroed commented 1 year ago

agree

namdre commented 1 year ago

@yunpangfloetteroed If the stationFinder requires some KPIs which are currently not tracked by the battery device, they should probably be stored in the stationFinder (by retrieving data via the existing API of the battery device). If the KPIs are deemed generally useful we might also add them to the battery device direclty.

yunpangfloetteroed commented 1 year ago

Yes!

yunpangfloetteroed commented 1 year ago

I updated the process concept above according to our discussion and the attributes we defined.

m-kro commented 4 months ago

How to integrate a little more long-term view than searching for a last-resort charging opportunity? If (working) days and trip chains are simulated, more conditions and constraints would become important:

Additionally, I suggest to add weight factors to the selection index components to switch some off if wanted. This would make it possible as well to value the importance of time.

trip chains: I have modeled trip chains as a single trip in SUMO because I don't need explicit persons. Stops define the origins/destinations.

namdre commented 4 months ago

Additionally, I suggest to add weight factors to the selection index components to switch some off if wanted. This would make it possible as well to value the importance of time.

It might be useful to re-purpose some code/ideas from the parking search (https://sumo.dlr.de/docs/Simulation/Rerouter.html#determining_the_alternative_parking_area

yunpangfloetteroed commented 4 months ago

Just in case that no historical energy per unit is available, e.g. a vehicle starts with a very low SoC and searches a charging station right after entering the network, the empirical energy consumption average 200 Wh/km will be used for calculating E_est (this is added in the diagram above).

m-kro commented 4 months ago

Is the current unit for E_est W/s in the flow chart right? W is already defined as J/s. I think this should be just W...

m-kro commented 3 months ago

Feature request: Deactivate the device temporarily (e.g. by TraCI) to end an important trip such as a taxi ride of a passenger.

m-kro commented 2 months ago

Additional feature: inspect planned stops (from other sources, e.g. predefined in XML) for charging stations and eventually let the vehicle proceed if it is estimated to make it there.

m-kro commented 3 weeks ago

Added a parameter device.stationfinder.maxEuclideanDistance to limit the search for charging stations spatially. This is needed for large networks / networks with a lot of charging stations because ranking them all by travel time needs too much computation time.

m-kro commented 2 hours ago

Some more ideas:

Now that the target function for parking search has been adapted to charging stations (see #14504), more options arise: