question

Conner F avatar image
0 Likes"
Conner F asked Jeff Nordgren edited

Random release from the queue

Hi I'm making a model where there are multiple different "packages" inside of a queue and I would like to release them from the queue at a random time over the course of day and ideally release a random package from the queue but only one at a time. I have tried all sorts of different trigger combinations and can't seem to find one that does what I am looking for. Does anyone know how I would go about accomplishing that

FlexSim 18.2.0
queue strategy
· 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.

David Seo avatar image David Seo commented ·

@Conner F

You can solve your issue using process flow module.

0 Likes 0 ·
Conner F avatar image Conner F commented ·

I'm not too familiar with how to use process flow are there any tutorials or something I should look at to help me solve my problem.

0 Likes 0 ·
Joshua S avatar image Joshua S Conner F commented ·

You can find the tutorials for process flow in the user manual

0 Likes 0 ·
pic1.png (20.9 KiB)

1 Answer

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Jeff Nordgren edited

@Conner F

I've attached a sample model that will do what I believe you are describing.

In Queue1, on the Flow tab, I set the Send To Port to "Do Not Release Item", which will hold flowitems until they are released elsewhere. Then I created a User Command called RandomRelease. When this command is called, it will release a random item from Queue1 to Queue2. And to add the randomness to when a flowitem is released, I used the MTBF/MTTR function. In that function, instead of taking the object (Queue1) down, I call the RandomRelease User Command. This give the flowitem release a random model time. The model really doesn't need the connection between Queue1 and Queue2 but I put it in there just so the model flow could be seen.

Take a look at the model and see if something like this would work for your situation.

Thanks.

random-release-jn1.fsm


5 |100000

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

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.