This model simulates ordering of a list of parts that each has a different lead times. It is a model that demonstrates how a vector of different delay times can be used for discrete changes. Spares to be ordered are defined with this array: (1,0,2,0,0,0,1,0,0,0), which means that we order 1 of item 1, 2 of item 3 and 1 of item 7. The lead times on these spares are defined as follows: (10d,15d,30d,2d,6d,10d,90d,60d,20d,5d)
We then need to apply each delay time to each spare part in the parts list to delay when the stock is replenished. If the delay time was the same for all parts in the list, then this would be a trivial problem, which uses a discrete change delay (see "Spares_Shipped_Single_Delay"). For different delay times, a combination of an Information Delay element and Reservoir should be employed. First you load up the Reservoir with the spares when they are requested then discharge them after the delay times specified in the array. Make the withdrawal discrete so that you can link the withdrawal rate to another discrete event.