The dynamic lot size model with quantity discount