[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
|
Re: [sumo-user] Electric Vehicle Behaviour
|
Hi Mirko,
please excuse the late answer, and thank you for your reply.
You've identified my problem pretty accurately, charging stations and stops are overlapping, resulting in buses charging whenever performing a scheduled stop.
As opportunity charging is a major point of interest for me, I'd really like to be able to control that a bit better.
You have hinted at the implementation being possible, presumably trough changing charging-stations somehow.
"AFAIK however you cannot disable charging when you still have
to serve the stop because people board there (physically
overlapping bus stop and charging station). Nothing complicated
to implement for anybody a little familiar with the code
though... "
I've tried to look into "MSDevice_Battery.h", but due to not being experienced in C++ and my project now nearing its writing phase, I sadly won't have the time to try and work myself into that.
For now, I think I've found a workaround, setting "chargeDelay" at stations to 21s, one second more than the standard stop-event of my simulation. This means I am loosing 21s of charging at every intended charging-event, but at the moment this has to be good enough.
Since I am currently only simulating a single day, the "break down" functionality is a bit less relevant, but will be needed when expanding the simulation time.
Also, the buses do not exceed their battery capacity, this was a data interpretation error on my side.
Thanks again and best regards,
Sven
Mirko Barthauer via sumo-user <
sumo-user@xxxxxxxxxxx> schrieb am Dienstag, 28. Juli 2026 um 19:38:
HI Sven,
can you specify clearly what your requirements are?
- Currently (unfortunately?) the "break down" feature due to an
empty battery is tied to the stationfinder
device. This device lets a vehicle look automatically for
a close charging station and reroute to it.
Alternative: Query the actual battery capacity (see below)
regularly and set a long lasting stop for the vehicle using traci.vehicle.setStop
- Charging stations are modeled as a special kind of stop, so
you can control which vehicle should charge by defining stops
(and possibly modifying the vehicle route and stops using
TraCI).
- AFAIK however you cannot disable charging when you still have
to serve the stop because people board there (physically
overlapping bus stop and charging station). Nothing complicated
to implement for anybody a little familiar with the code
though...
Alternative: You can query the actual battery capacity at the
stop begin (traci.vehicle.getParameter(veh,
"device.battery.capacity")), store it in your script and set the
same value for every time step the stop lasts with
traci.vehicle.setParameter
Best regards,
Mirko
Am 28.07.2026 um 14:04 schrieb Sven via
sumo-user:
Dear
SUMO-Community,
I
have asked for help about my electric-bus simulation projekt
here before, and thanks to the help I recieved I have made lots
of progress.
I do
however have the feeling of running into some limitations. As my
goal is to extract realistic data about the charging behaviour
of e-buses, id like to be able to control when buses are
charging.
Currently
they charge whenever positioned at a charging station, go above
their battery capacity, and do not stop when running empty. All
of which is not ideal for my scenario.
I
have started to look into TraCl for addressing the issues, but i
am not quite sure if it is even possible.
Therefore i would be very grateful if someone could give me some
pointers where to look or what to expect.
Best regards
Sven
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user