Optimal Design Of Flexible Manufacturing Systems