Hi Ifezue,

the concept of a line is that many vehicles operate on one logical line, I recommend that you name your lines red,blue etc. as suggested by the route names.

You should add the line attribute to the vehicle.

For the vehicles starting in your PersonFlow file at line 215 I would use the attribute line=blue"

I my example I use a trip instead of a complete route, specifying only the stops

  <trip id="tram1" depart="100" departLane="best" departSpeed="max" from="E35" to="E2" type="RB628" line="1">
    <stop busStop="B1" duration="20"/>
--
  </trip>
  <trip id="tram2" depart="363" departLane="best" departSpeed="max" from="E35" to="E2" type="RB628" line="1">
    <stop busStop="B1" duration="20"/>
--
  </trip>

Regards, Harald

Am 02.10.21 um 20:38 schrieb vincentobiako:

Jakob & Harald

I was able to get person agents to enter the buses successfully as I wanted. However, when I added demand for a different bus route no persons showed up at any of the designated bus stops for the new route that I was trying to add demand to. I looked through my xml code and I could not find any mistakes. I am not sure what could be causing this mishap aside from the ‘lines’ keyword which may be getting confused about if I am using a bus line id or a vehicle id. Please know that in the ‘lines’ keyword I am referring to a vehicle id rather than a particular bus line id. For reference, I have attached both my person and vehicle xml files.

The problem in the person flow seems to be occurring after line 215 and I am not really sure what the issue is that is preventing the person agents from appearing in my simulation during the designated time range.

Thanks

Ifezue

Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

*From: *Jakob Erdmann <mailto:[email protected]>
*Sent: *Saturday, October 2, 2021 6:45 AM
*To: *Sumo project User discussions <mailto:[email protected]>
*Subject: *Re: [sumo-user] Getting Persons to enter Bus

1. Instead of using a walk to the first busStop you can also define your personFlow with

<personFlow id="pers2_4_" begin="0" end="3963" number="504" color="1,1,0">
    <stop busStop="B2" duration="0/>
    <ride busStop="B4" lines="1"/>
  </personFlow>

Note, that this ignores the personCapacity of the busStop whereas approaching the busStop with a walk with respect capacity and may cause jamming on the sidewalk.

If you wish to create bus schedules with until and duration values automatically, (i.e. based on a sequence of stops), see

https://sumo.dlr.de/docs/Simulation/Public_Transport.html#importing_public_transport <https://sumo.dlr.de/docs/Simulation/Public_Transport.html#importing_public_transport>

2. No. You need two personFlows for this.

regards,

Jakob

Am Sa., 2. Okt. 2021 um 12:01 Uhr schrieb Harald Schaefer <[email protected] <mailto:[email protected]>>:

    Hi Ifezue,

    i have build a simple model with 7 generic stations, my flows look
    like this

      <personFlow id="pers1_5_" begin="0" end="3963" number="2016"
    color="1,0,1">
        <walk from="AB1" busStop="B1"/>
        <ride busStop="B5" lines="1"/>
        <walk to="AB5"/>
      </personFlow>
      <personFlow id="pers2_3_" begin="0" end="3963" number="144"
    color="1,0,0">
        <walk from="AB2" busStop="B2"/>
        <ride busStop="B3" lines="1"/>
        <walk to="AB3"/>
      </personFlow>
      <personFlow id="pers2_4_" begin="0" end="3963" number="504"
    color="1,1,0">
        <walk from="AB2" busStop="B2"/>
        <ride busStop="B4" lines="1"/>
        <walk to="AB4"/>
      </personFlow>

    I have above two flows originating at station B2 and ending at
    station B3 resp B4. My passengers have colors according to there
    destination.

    I have a script createFlow(root, start, to, number) and can use
    lines like this

      createFlow(root, 1, 2,  432)
      createFlow(root, 1, 3, 1584)
      createFlow(root, 1, 4, 2592)
      createFlow(root, 1, 5, 2016)
      createFlow(root, 2, 3,  144)
      createFlow(root, 2, 4 , 504)
      createFlow(root, 2, 5,  612)
      createFlow(root, 2, 6 , 396)

    to create personFlows according to a simple O/D-Matrix

    Best regards, Harald

    Am 01.10.21 um 23:55 schrieb vincentobiako:

        Hello everyone

        I have two questions or issues.

        *_First question or issue:_*

        I am currently trying to have a person flow appear at specific
        bus stops within my network and I was wondering if there is a
        way to have persons appear at a bus stop no matter the time of
        arrival and have them enter a bus when it arrives at the
        designated stop that the persons are located? I was wondering
        because using keywords such as ‘until’ and ‘duration’ seem
        quite tedious to use in my application of SUMO that has a
        large road and bus network. Do you use the ‘triggered’
        attribute? Also for some reference please see the attached xml
        file for the ‘personFlow’ I am referring to.

        Please know that I am trying to make the bus ridership in
        simulation follow a specific ridership distribution.

        *_Second question or issue:_*

        I was wondering if you could have a person flow start at a one
        bus stop and end at two different bus stop locations? If this
        is possible how do you implement this in xml?

        Thank you in advance

        Ifezue

        Sent from Mail
        <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

        _______________________________________________

        sumo-user mailing list

        [email protected]  <mailto:[email protected]>

        To unsubscribe from this list, 
visithttps://www.eclipse.org/mailman/listinfo/sumo-user  
<https://www.eclipse.org/mailman/listinfo/sumo-user>

_______________________________________________
sumo-user mailing list
[email protected] <mailto:[email protected]>
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user <https://www.eclipse.org/mailman/listinfo/sumo-user>


_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to