question

craig-dickson avatar image
0 Likes"
craig-dickson asked Jason Lightfoot commented

Modeling a smoking area

I have a model, built using people (not operator TEs). Some of the people go to a smoking area during breaks. (This is not a healthcare model LOL)

I modeled the smoking area using a Floor Spot Location object. However, the smokers all travel to the center of the area; I'd like each of them to go to a random location within the area. I looked at the Multi Location object, but the options all have chairs, and I don't want them to sit down.

Any suggestions?

FlexSim 23.1.1
people modulefloor spot
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @craig-dickson, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

You could determine a random location within the boundaries of the Floor Spot and have the people travel there with a 'Travel To Loc' activity.

random-position-in-location-fm.fsm


· 2
5 |100000

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

craig-dickson avatar image craig-dickson commented ·

@Felix Möhlmann Question though: If I do not check "Ignore inactive ..." in the A*, the floor spot seems to have a capacity of exactly one. Is there a way to give a floor spot a specific (larger) capacity?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann craig-dickson commented ·

The Floor Storage only encopasses a finite amount of grid cells, depending on its size and the granularity of the grid. If two or more people generate coordinates whose closest cell is the same, obviously only one person can stand there at a time. The same is true if the route to reach the destination point leads through a cell where a person stands. The A* navigator will not route around those, so the people are stuck until the blocker moves on.

1706858708802.png

One way to work around this might be to:

- Discretize the available spaces, so a cell is only assigned once.
- Assign them in order from farthest to closest to avoid blocking:
- Also use preferred paths to further avoid standing people blocking others that have not reached their target yet.

0 Likes 0 ·
1706858708802.png (61.6 KiB)