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.

Roberto A5 avatar image Roberto A5 commented ·

Thank you very much for sharing the model, I could understand the idea of Aaron C. I already have more clear how the lists work. I will try to put other details that I need to see how it goes, but you have solved the biggest problem I had until now. Thank you.

1 Like 1 ·
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.

Roberto A5 avatar image Roberto A5 commented ·

I'm so sorry.

Could you tell me how to create the list with those partitions?

I've tried, but I haven't been able to globally assign that label for the bus to take.

0 Likes 0 ·
Aaron C avatar image Aaron C Roberto A5 commented ·

Sure, no problem. When you PUSH to the list, you want the Push Value to be token.Person and the Partition ID value to be something like "token.Destination". When you PULL from the list at a location (let's say Exit1) to get the people who are getting off, you want the Partition ID to be set to the object reference of "Exit1".

0 Likes 0 ·
Roberto A5 avatar image Roberto A5 Aaron C commented ·

Yes, I do. My problem is that only passengers who are going to station 1 get on. I see that you have to edit the list on the bus but I can not get it to work with any label, so I asked for a more in-depth indication, maybe I'm trying badly your help. Again I apologize for insisting so much.

0 Likes 0 ·