question

威洋 avatar image
0 Likes"
威洋 asked Ryan Clark commented

How to make the customers have randoms demands.

Hello everyone!


I have a model that is a two-tier inventory, I want the customer demands to be between 5 to 15, but my model customers are using the combiner to set fixed demand, and I also hope my retailer and distributor have beginning inventory.


in my model :

Rank1 is the retailer

Rank 17 is the distributor

Source3 is the customer generation


Thank you for your help!!

two-tier inventory model.fsm

FlexSim 20.1.3
flexsim 20.1.3inventorycombiner problem
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

·
Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hello @威洋,

I believe I understand your problem. I have attached a model that should solve that issue for you. I did two main things:

  1. I added a trigger to the source that is creating the customers to add a label to each customer on creation. This label is randomly assigned and indicates the number of items they want.
  2. I also added a trigger to the combiner (OnEntry) to "Update Combiner Component List." Then, using a Global Table. I changed the settings to set the quantity of components based on the label on the customer.screenshot-2021-08-16-140258.png

I hope this helps! Let me know if you have any questions!


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

威洋 avatar image 威洋 commented ·

Hello @Ryan Clark,

Can you share the file or picture of how to add customer labels to source3 triggers? I am not sure how to set it up.

Because I tried your two main modifications, my model will pop up with an error message

thank you for your help!


0 Likes 0 ·
Ryan Clark avatar image Ryan Clark 威洋 commented ·

Hello @威洋,

I have attached the model that I modified and a picture of the Source3 Trigger window. Hope this helps!

Random Demands.fsm

Screenshot 2021-08-17 085421.png

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.