question

Roberto A5 avatar image
1 Like"
Roberto A5 asked Roberto A5 commented

Passengers with different destinations

Hello.

I'm making a model on a bus route with three stations.

The problem is that I can't find a way to configure the bus to receive passengers bound for different stations. It's always the case that only one station in common is used.

I hope you can help me.

Attached is the model I'm trying.

busstop.fsm

FlexSim 19.1.0
process flowlisttransporterbus
busstop.fsm (2.6 MiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joseph Gillespie avatar image
2 Likes"
Joseph Gillespie answered Roberto A5 commented

@Roberto A5

Here's an updated version of your model you might find helpful: busstopanswer.fsm

In this model I split your list into two: "StopList" for the people waiting at bus stops and "BusList" for people on the bus. I then partitioned StopList by which stop people are currently at and BusList by people's destination. Like in Aaron's answer, I assigned these to the people as labels with a value of 1, 2 or 3.

I also added functionality so that the bus can only carry token.Capacity number of people. (I'm assuming you wanted that since you had that label in the Process Flow). If you want the bus to pick up everyone at the bus stops, you can just eliminate this capacity limit or raise the capacity number.


busstopanswer.fsm (170.6 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Aaron C avatar image
1 Like"
Aaron C answered Roberto A5 commented

I've done a similar model in which my passengers had a label "Destination" and it was number 1,2, or 3. Push the passengers to a list separated into partitions based on that label. Then when you arrive at a destination, pull everyone in the corresponding partition.

Let me know if you need more detail than this!

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.