Main > Reference Manual > Unit tests > TestSafetyStock

This test demonstrates the capabilities to model and plan safety stocks in frePPLe.

There are 2 ways:

  1. Quantity-based safety stock.
    A minimum calendar on a buffer defines the desired minimum stock level, which can vary over time.
    The solver tries to replenish to this level when replenishing the buffer, but handles it as a soft constraint only.
    The buffer flags a problem when the inventory drops below the minimum target.
  2. Time-based safety stock.
    A post-operation time on an operation defines a time delay after the end of the operation.
    The solver tries to respect this delay, but handles it as a soft constraint only.
    No problem is shown when the post-operation time is shrunk or reduced.