Dynamic programming algorithms for multi-stage safety stock optimization · Study