Statistics for Joint lot sizing and tool management in a single CNC environment