A stochastic model for determination of the optimal number of tools for the machine group in a flexible manufacturing system