Optimizing multi-stage production with constant lot size and varying number of unequal sized batches