An online joint replenishment problem combined with single machine scheduling