Supply chain optimization in the batch layer