question

Vyk_k avatar image
0 Likes"
Vyk_k asked Vyk_k edited

Pushing X number of Items(objects) Into Queues at the beginning of Simulation

Please, I'm wondering how I can push items into my Queues at specific inventory locations at the beginning of a simulation. For example, at the start, how I can make certain inventory point contain an x amount of base values, say, 25 pencils at the beginning.

I need help with this. I am sure the use of tokens in process Flow will be great but I'm not getting it each time I tried it. I attached my model here for a better understanding of what I want to do.Thanks

FlexSim 23.0.4
push and pull list
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

·
Jacob W2 avatar image
0 Likes"
Jacob W2 answered Vyk_k commented

Hi @Oluwagbenga_victor O,

Process flow is the cleanest way to create initial inventory in a model.

This image shows a basic process flow that controls the initial inventory of a model.

pf-image.png

The source creates two tokens, one to represent the two queues i've created in the model. On each token I've created two labels, one called "Destination" that points to a specific queue, and one called "NumItems" which is the number of items I want to create in the queue. The create object activity uses the token.Destination label as the location to create the objects, and the token.NumItems label to determine how many items to create.

source.png

results.png

When I hit run, the process flow creates the items in the queues as seen in the image above.


pf-image.png (9.0 KiB)
source.png (31.7 KiB)
results.png (13.8 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.

Vyk_k avatar image Vyk_k commented ·

Thanks a lot, @Jacob W2

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.