User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
Hi Ifezue,
do you know the article
Araya, Shinji; Sone, S., "Traffic Dynamics of Automated Transit
Systems with Pre-established Schedules", IEEE Transactions on
Systems, Man and Cybernetics, 14(4), pp.
677-687 (1984).
It has a simple algorithmus to make the stops longer, if the gap
to the following vehicle of the same line becomes larger.
If you browse the internet for "Araya Sone 1984 Traffic Dynamics"
you find a lot of articles dealing with your issue.
I think, the decision to extend the stopping time or slowing
should be made at the stops. To look 50m ahead is too late.
Regards, Harald
Am 13.10.21 um 19:29 schrieb Ifezue
Obiako:
Thank you Harald. This helped a lot. However, that
is the thing. I am trying to create enough headway between the
buses so that they are not bunching up together and servicing
bus stops one after the other. Based on the bus system that I
have seen in reality, slowing down the following bus is
typically what is done during bus operations, and they try to
keep a 4-7 min headway between each bus so that one doesn't run
into the other along each route. That was the idea behind
putting such a large number for the slow down duration.
It was either using the "traci.vehicle.slowdown" method or
the "traci.vehicle.openGap" method. I thought using the
"traci.vehicle.slowdown" method would be more appropriate
since it forces the intended vehicle to slow down and maintain
a desired headway between buses. What are your thoughts on
this?
On Wed, Oct 13, 2021 at 3:36
AM Harald Schaefer <fechsaer@xxxxxxxxx> wrote:
Hi Ifezue,
with some slight modifications both batterie request and
slowDown in your script works fine
leader ('6', 39.15839766767725)
14516 Slowdown vehicle 5 with current speed 5.8
leader ('6', 33.86887170421031)
14517 Slowdown vehicle 5 with current speed 5.3
leader ('6', 29.05112082833128)
14518 Slowdown vehicle 5 with current speed 4.8
leader ('6', 25.030976798088826)
14519 Slowdown vehicle 5 with current speed 4.0
leader ('6', 21.36720949786841)
14520 Slowdown vehicle 5 with current speed 3.7
leader ('6', 18.027421043122573)
14521 Slowdown vehicle 5 with current speed 3.3
leader ('6', 14.982158811535452)
14522 Slowdown vehicle 5 with current speed 3.0
leader ('6', 12.2046476919108)
14523 Slowdown vehicle 5 with current speed 2.8
leader ('6', 9.670546674070202)
14524 Slowdown vehicle 5 with current speed 2.5
leader ('6', 7.357727566942389)
14525 Slowdown vehicle 5 with current speed 2.3
leader ('6', 5.246073833189829)
14526 Slowdown vehicle 5 with current speed 2.1
leader ('6', 3.333195595135593)
14527 Slowdown vehicle 5 with current speed 1.9
leader ('6', 2.0003173570813555)
14528 Slowdown vehicle 5 with current speed 1.3
leader ('6', 1.200590414248813)
14529 Slowdown vehicle 5 with current speed 0.8
leader ('6', 0.7207542485492882)
14530 Slowdown vehicle 5 with current speed 0.5
leader ('6', 0.4328525491295725)
14531 Slowdown vehicle 5 with current speed 0.3
leader ('6', 0.26011152947774363)
14532 Slowdown vehicle 5 with current speed 0.2
leader ('6', 0.15646691768664578)
100 secs is a long time to increase the distance between
two vehicles close to each other, i have chosen 10 sec
In your battery stuff you should query the vehicle, not
the vehicleType.
Regards, Harald
Am 13.10.21 um 02:57 schrieb vincentobiako:
Hello Everyone
I am fairly new to Python and SUMO.
I have a bus route, referred to as a Green Bus Route,
that is running in SUMO. This bus route has two buses
on its line/route and somehow these buses manage to
get bunched up together, offering no headway between
the two vehicles. I am currently trying to solve this
issue by having the follower bus slow down for some
time so that it can get some adequate headway between
it and the leading bus. In order to this, I am having
the following bus “detect” the lead bus through the
traci.vehicle.getLeader() method and having the bus
slow down with traci.vehicle.slowDown() method. However,
when I run my script in the simulation, the
simulation runs with no errors, but the green buses
don’t seem to do what I had intended them to do in
the Python script.
I have attached some test files to
this email for reference to clear up any confusion.
Please refer to the Python function named
“maintain_headway” for where this issue seems to be
occurring.