Dynamic batch scheduling in a continuous cycle-constrained production system