more products and waiting time

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
tokkitrooi
Posts: 7
Joined: Friday 25 March, 2011 - 13:11

more products and waiting time

Post by tokkitrooi »

hello,

I have two different products, productname = 1 and productname = 2. (defined in the atom source)

Now, I want to determine the confindence interval of the waiting time, so experimental design, source queue en den avStay, but i want the waiting time (on average) of product 1 and product 2 (and together, but that is simple as mentioned before).

I tried:

if(

Label([productname],i) = 1, do(
AvgStay(cs)
)
)

Then the output will be equal to 0, can someone can help me? what would help? thank you!
marlies
Posts: 301
Joined: Monday 17 January, 2011 - 09:28

Re: more products and waiting time

Post by marlies »

Hello,

I suggest to keep track of the total waitingtime and total output per producttype in the exittrigger of the queue. This could be stored in labels on the queue or in a table atom. In the experiment wizard you can calculate the average waitingtime per producttype by dividing these labels (or cell values).

In the attached model you will find an example of this solution. Keep in mind that the labels need to be cleared on reset, this is done in the initialize atom.

Regards,

Marlies
Attachments
WaittimePerProduct.mod
(15.03 KiB) Downloaded 399 times
Post Reply