Statistics for Integrated lot sizing and tool management in automated manufacturing systems