Determining the optimum production-packaging policy for jointly replenished items