Optimal planning with jumps in inventories