Optimizing production capacity and safety stocks in general acyclic supply chains · Study