question

Vyk_k avatar image
0 Likes"
Vyk_k asked Jason Lightfoot commented

How to Make my Inventory Not to Go Below a Pre-determined Level.

please I need help on how to use the Process Flow to ensure that my base stock inventory remains constant despite varying demands. Here is an attachment of what I am doing. I have used process flow to set up an initial inventory (of 500, 350 and 750) at every start of the simulation at the three queues. However, I want a constant amount of (not below) say 400, 300, and 600 in my Queues 1 to 3 respectively. I need a guide in this respect.

The simulation model is attached below.

Constant Inventory in My Queues(1to 3).fsm

FlexSim 21.2.4
inventorybase stock
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 Jason Lightfoot commented

Delete the sink; break apart and connect the source and create activities; add a wait for event, and loop the end of that back to the create activity.

While what you have is fine - consider using an Object Process Flow rather than a general one and putting the information you need on queues as labels (eg. targetLevel).

As a student try this (or something similar) and if you get stuck at any step come back and tell us with what you're having an issue.

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

@Jason Lightfoot, thanks for your comment. I did as you recommended, but all my inventories still got exhausted. Besides no special mention or action was in place for the base stock I want to maintain. Here is the picture of what I did.

1678652150255.png

Maybe I did not capture your suggestion very well.

0 Likes 0 ·
1678652150255.png (9.4 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Vyk_k commented ·

Like this:

1678658719063.png

0 Likes 0 ·
1678658719063.png (5.9 KiB)
Vyk_k avatar image Vyk_k commented ·

Do I need to put some parameters in the Wait for an Event feature? I am asking because I did just as you explained and still did not get any result. Is there a way you could help expand the Wait for an Event flow,and add some information that could be of help in this regard. Maybe something like this:


1678653012462.png

Thanks so much for your time.

0 Likes 0 ·
1678653012462.png (22.0 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Vyk_k commented ·

In my example I use an Object Process flow where the queue is referred to as 'current'. If you keep with the general process flow you'll need to replace that with your queue reference:

1678658798848.png

0 Likes 0 ·
1678658798848.png (23.3 KiB)
Vyk_k avatar image Vyk_k commented ·

Thanks,@ Jason Lightfoot. Regarding the 'Value' which has current.replenishLevel, what is the current.replenishLevel representing? Is it a label, what is it referencing? Thanks for your time.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Vyk_k commented ·

I made it a label on the queue representing your 400,300 and 600 levels respectively (remember in my example 'current' is the queue - so you'd need to replace that with your expression for the queue). You can have another label on the token of course too...

Also think about the number you want to create - it might not be fixed each time - the first time will be the full amount but for it to change it should be an expression.

0 Likes 0 ·
Vyk_k avatar image Vyk_k commented ·

@Jason Lightfoot, having initially created labels for Queues, Number of initial inventories, and the point to replenish (Replenishment) as seen in the first image, I went ahead to use the labels in the Wait for Event stage (second image) to imitate what you did but it still did not work.



1678662637550.png


1678662498420.png



0 Likes 0 ·
1678662498420.png (27.1 KiB)
1678662637550.png (17.8 KiB)
Vyk_k avatar image Vyk_k commented ·

.. And finally, it worked. Having combined the Wait for Event and Create Object before looping it. Of course, I used the last two information I posted earlier. Here are the last three images for those who might need similar information.



1678664197107.png


1678664145764.png


Thank you so much @Jason Lightfoot for your guidance and patience. I so much appreciate.

0 Likes 0 ·
1678664145764.png (7.1 KiB)
1678664197107.png (82.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Vyk_k commented ·

Good job - here's the version with the object process flow.


constant-inventory-in-my-queues1to-3_jl.fsm

0 Likes 0 ·