Hi all,
In my simulation model I have one source generating two types of consumers:
- the ones that pick products from a shelf LIFO
- the ones that pick product from a shelf FIFO
I simulated one shelf containing product with different expiry dates.
These products come from a storage facility accorinding a FIFO queue principle.
The inputs I already have:
Source (consumer demand)
1. Assign label: products are assigned a label named type with a value of Bernoulli(60,1,2)
Where type 1 are the FIFO consumers
I use an assembler to match the consumer demand to the products on shelf. My question is if anybody knows how I can write in 4D script that type 1 consumers take the newest products, and type 2 consumers the oldest?
Regards
WU R
Assign LIFO and FIFO consumers
Re: Assign LIFO and FIFO consumers
Hello WUR,
Attached is an example model were a quick solution to this problem is given. I used a source for both generating the Customers and the Products. The products then go to a queue. At the exittrigger of the customer source I added a label to the customers like you said, Bernouilli(60, 1, 2). Then on the entrytrigger of channel 1 of the assembler (the customer channel) I said, if it is a type 1 customer, move the last atom in the queue with products to the first place. Then the assembler will take the first atom in the queue, what was formerly the last atom.
Regards,
Bart
Attached is an example model were a quick solution to this problem is given. I used a source for both generating the Customers and the Products. The products then go to a queue. At the exittrigger of the customer source I added a label to the customers like you said, Bernouilli(60, 1, 2). Then on the entrytrigger of channel 1 of the assembler (the customer channel) I said, if it is a type 1 customer, move the last atom in the queue with products to the first place. Then the assembler will take the first atom in the queue, what was formerly the last atom.
Regards,
Bart
- Attachments
-
- Customer_Handling_Example.mod
- (9.26 KiB) Downloaded 329 times
Re: Assign LIFO and FIFO consumers
Impressive! Thank you!
I'm just wondering about the consumer arrival pattern and have another small question.
I have 189 consumers a week, with a variation of 11%.
I could model this like normal(189,10), where 10 is 5.5% of 189. However, I need integer numbers... I looked for Poisson distribution in the Help overview and saw that is is also possible to add two values, but how does the second one works?
Can I simulate the variance with this formula?
Maybe it is possible like normal(int(189,10))?
HELP OVERVIEW PROVIDED THE FOLLOWING:
Parameters
This function needs at least 1 parameter, and has a maximum of 2 parameters.
Syntax: Poisson(e1 {, e2})
Parameter 1 (e1) is the mean of the distribution. Parameter 2 (e2) is a specific random generator. If parameter 2 is omitted the default generator (1) is used.
Copyright (©) 1997-2010, Incontrol Enterprise Dynamics
I'm just wondering about the consumer arrival pattern and have another small question.
I have 189 consumers a week, with a variation of 11%.
I could model this like normal(189,10), where 10 is 5.5% of 189. However, I need integer numbers... I looked for Poisson distribution in the Help overview and saw that is is also possible to add two values, but how does the second one works?
Can I simulate the variance with this formula?
Maybe it is possible like normal(int(189,10))?
HELP OVERVIEW PROVIDED THE FOLLOWING:
Parameters
This function needs at least 1 parameter, and has a maximum of 2 parameters.
Syntax: Poisson(e1 {, e2})
Parameter 1 (e1) is the mean of the distribution. Parameter 2 (e2) is a specific random generator. If parameter 2 is omitted the default generator (1) is used.
Copyright (©) 1997-2010, Incontrol Enterprise Dynamics
Re: Assign LIFO and FIFO consumers
Hello WUR,
Try Round(normal(189,10)) to get integers.
For modelling a poisson arrival proces, check the following post:
viewtopic.php?f=5&t=278&p=1206&hilit=poisson#p1206
Hopefully this will help!
Kind regards,
Menno
Try Round(normal(189,10)) to get integers.
For modelling a poisson arrival proces, check the following post:
viewtopic.php?f=5&t=278&p=1206&hilit=poisson#p1206
Hopefully this will help!
Kind regards,
Menno