Competition under time-varying demands and dynamic lot sizing costs