question

Kadircan T avatar image
0 Likes"
Kadircan T asked Kadircan T commented

How to get the token nearest to operator?

Hi,

I tried to put tokens in an order according to their current distance to operator while pulling from list but i failed. Pushing operators to a list and pulling them before "acquire personel" didn't work.

While model flows, tokens which represent each full queues, get in line by time order. My goal is to get these tokens in line by distance between operator and next token and make operator to go to nearest token.

Thank you for your help :)

OverflowModel_FlexSim.fsm

FlexSim 22.2.2
nearest resource
5 |100000

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

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Kadircan T commented

Your model only needs some small adjustments in the "Personal" resource.

1670233379913.png

- At the point where the operator is acquired, the token doesn't have a label called "item". You have to edit the code of the "distance" expression to use the "Queue" label instead and calculate the distance between the operator and the chute/queue.

1670233166747.png

- The distance should be recalculated every time a token tries to acquire the operator since the position changes. So the expression has to be set as "Dynamic".

1670233258372.png

- Now you can use the distance to order the back orders.

1670233314711.png

overflowmodel-flexsim_1.fsm


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

Kadircan T avatar image Kadircan T commented ·

Thank you @Felix Möhlmann , this is what i was looking for :)

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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