Multi-stage production with variable lot sizes and transportation of partial lots