Optimal Control Assemble-to-Order Systems with Delay Guarantees