question

Karan avatar image
0 Likes"
Karan asked Karan commented

How can I use a zone restriction to route a token down a separate path?

I have multiple queues that my items can possibly filter into, but the queues are restricted by a maximum total amount of a label.


I have labels attached to my flowitems that I wish to restrict going into each of the queues based on the calculated total of said label. Let's just assume that I have several tokens with labels 1,4,5. My restriction is 6. So I can put 1 and 4 into the one queue restricted by the zone, but then I can't fit the 5 in since it would exceed my max calculated total of 6. But I do have another queue (another zone then) that I would like the 6 token to makes its way into (if available of course). What is the best way to accomplish this task (also think of if there were 3 or many more queues)? Is there a way to probe the calculated total from a zone and use a decide to send that other token down a different path?

FlexSim 22.2.0
zonesrestrictions
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Karan commented

You could put a pull requirement on the queues that looks through the items in the zone and returns 1 if there is space zone capacity for the triggering item and 0 if not. For that you'd need some way to reference the items in the zone - could be by group, by common container or by centerport connections or and array label listing each. I think the quickest and easiest to set up are the group or container.

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

Karan avatar image Karan commented ·
Okay I'm not sure I quite understand how to accomplish that, especially since I want to have operators moving the flowitems not having the queue pull. If you have a mini example or something that would probably set me down the right path. However, wouldn't it be easier if I could probe the calculated total from my zone subset? If my calculated total plus the new value is > my max of 6 then I just route it down a different path right? That seems like a simple formula I could write to accomplish my goal: token.label + zone.subsetcalculationtotal <= 6 go down path 1 and if not go down path 2 (using a Decide in the processflow).


Separately, is it possible to get the calculated value from a subset total calculation during the simulation running? For use elsewhere (not just as a part of a dashboard)?

0 Likes 0 ·
Karan avatar image Karan Karan commented ·

I ended up calling in and Sam helped me out. We found that you could solve this with simply a max wait timer that would kick the token down a different path. We did find that if you want to pull the calculated value from a subset the GUI isn't setup to support that. You have to open the code and add a comma and your calculated name to the end of the line of code to get it to work.


I ended up calling in and Sam helped me out. We found that we could solve this simply by using a max wait timer and kicking the token out a different path. We did find that if I actually want to pull the calculated value from a subset that the GUI isn't setup to support that. I had to manually go into the code and add an additional factor on the end to get it to work.

0 Likes 0 ·