Table of Contents

7.5. Safety Stock Calculation

Assume we have locations imported. In this case, an inventory planning item is defined by a pair Location, Item code. There are two different safety stocks in Streamline depending on its configuration.

If a planning item is both sold and distributed through a DC, it is assigned both safety stocks. In this case, Streamline shows the sum of them in the DC safety stock column on the Distribution center tab.

Depending on the inventory replenishment strategy, Safety stock or DC safety stock is an assessment of the reserve stock for:

Safety Stock Calculation Methods

Depending on the model type, the way Streamline calculates the Safety stock is different.

Streamline calculates Safety stock using one of the following methods for any model type, except for the intermittent model.

Safety~stock = alpha * delta * sqrt{t}, (1)

where:

  • δ is the unbiased standard deviation of the model for the learning set. If Item code is sold, let's say, via n channels (we have n models), δ is calculated as:

delta= sqrt{delta^2_1 + delta^2_2 + ... + delta^2_n}

  • t is the Order cycle if the periodic strategy is used, or the Lead time in the case of the min/max replenishment strategy. The Order cycle and Lead time are converted to the data aggregation periods before the calculation.

For example, if data aggregation period is one month (monthly data), Lead time is 30 days, Order cycle is 1 month, and Safety stock periods = 2, then Safety stock will be calculated as summed demand of the February and March (see figure below). This parameter can be also given as a fractional number.

The DC safety stock is computed using one of the same approaches as the Safety stock. The difference is only in the formula (1):

DC~safety~stock = sqrt{SS^2_1(alpha,t) + SS^2_2(alpha,t) + ... + SS^2_m(alpha,t)}, (2)

SS_i(alpha,t) = alpha * delta_i * sqrt{t},~i = overline{1,m},

where:

Safety Stock for Intermittent Model

Suppose T is the number of data aggregation periods in future for which Safety stock is calculated.

If T ≤ 1, then Safety stock is an estimation the following log-normal distribution:

Safety~stock = 10^delim{}{Phi^-1(SL)hat{Dev}+lg(hat{Med})}{}, (3)

where:

You can also adjust the Deviation and Median parameters manually in the Model tab.

If T > 1, then the Safety stock is calculated in three steps:

1. Find the estimations hat{Dev} and hat{Med}.
2. Correct the estimations in the following way:

hat{Med} = hat{Med}(1 + P_t * (T - 1)),
hat{Dev} = MAX[hat{Dev}(1 + P_t * (T - 1)) + hat{Med}^2 * Var_{B(T - 1)}, 0.01],

where:

3. Calculate Safety stock using the formula (3) using the corrected estimations.

When T is fractional, there is no binomial distribution, but a formula for variance exists.

Final Safety Stock

After Safety stock or DC safety stock has been calculated, Streamline refines it with one of the following ways:

If Display qty is not imported, it is zero. You can switch between these methods in the project settings.

Safety Stock Debts

To replenish inventory in the two-echelon-model, Streamline uses the safety stock debt approach. Consider an example shown in the figure below.

There are four locations in the figure – one is a DC that resides at the highest echelon and the other three locations are stores, residing at the lowest echelon. Three safety stock characteristics are calculated for each location:

It is obvious, that Debt received and Debt accumulated equal to zero for locations at the lowest echelon in the two-echelon model. Despite that Streamline computes Debt passed even at the highest echelon, this result has no impact on any other calculations used to produce DC replenishment outcomes. Streamline shows it just for display purposes.

Safety Stock Debt Passed

This debt is calculated for each planning item in the two-echelon model. Depending on the current on-hand level and demand during the lead time, safety stock debt passed may include:

Consider all the available cases.

If no constraints (Min lot, Max lot, and Rounding) are applied, the calculation of the Debt passed follows the logic:


If on-hand ≥ safety stock + D(LT),

Debt passed = 0.














If safety stock ≤ on-hand < safety stock + D(LT),

Debt passed = MIN(safety stock, D(LT) + safety stock - on-hand)














If on-hand < safety stock,

Debt passed = MIN(safety stock, D(LT) + safety stock - on-hand)











As you see, the formula for calculating Debt passed is the same in the last two cases. We duplicate it here to demonstrate all the three cases shown in the figures above.

As you see, Debt passed can't exceed the location's safety stock.

Safety Stock Debt Received

The formula for the Debt received is:

Debt~received = sum{i=1}{N}{Debt~passed_i},

where:

Safety Stock Debt Accumulated

The formula for the Debt accumulated is the following:

Debt accumulated = MIN[MAX{0, Forecasted consumption - DC On hand} + Debt received, Max SS debt],

Forecasted~consumption = sum{i=1}{N}{Demand_i(DC~lead~time)},

Max~SS~debt = sum{i=1}{N}{(Safety~stock_i)},

where:

Safety Stock Debts in Streamline

To demonstrate safety stock debts in Streamline, we use the built-in example Two-echelon Inventory Planning. To view safety stock debts for locations at the lowest echelon, check the Safety stock debt option on the Inventory tab in the Settings dialog (see figures below).

As you see, locations which are replenished from DCs have empty columns Received and Accumulated. The Passed column indicates the Debt passed to the upper echelon.

To view safety stock debts for DCs, check the Safety stock debt option on the Distribution center tab in the Settings dialog (see figure below).

Distribution center tab now shows an additional section Safety stock debt (see figure below).

The Received, Accumulated, and Passed columns refer to the Debt received, Debt accumulated, and Debt passed accordingly. Gray color in the Passed column means that these data are not used for calculating the DC outcomes.

Configuring Safety Stock Calculation

Calculation methods for the Safety stock and DC safety stock are configured separately in Streamline.

To set up a calculation method for the Safety stock:

  1. Go to the menu File > Settings > Inventory tab > Safety stock section (see figure below).
  2. Select:
    • the first option, to calculate Safety stock using the formula (1);
    • the second option, to determine Safety stock as the demand sum of a given number of the future periods;
    • both options, to compute Safety stock as the maximum from two options above.

To set up a calculation method for the DC safety stock:

  1. Go to the menu File > Settings > Distribution center tab > Safety stock section (see figure below).
  2. Select:
    • the first option, if you need to calculate DC Safety stock using the formula (2);
    • the second option, to determine DC Safety stock as the sum of demand of a given number of the future periods;
    • both options, to compute DC Safety stock as the maximum from two options above.

As we mentioned, the Safety stock and DC safety stock are calculated based on the given Service level and Safety stock periods parameters. There are several ways to set these in Streamline. To learn more about them, refer to the Replenishment parameters configuration methods.


Next: Ordering Plan Calculation

Download PDF