Dynamic capacitated lot sizing with random demand and dynamic safety stocks