Optimizing factory operations and enhancing production capabilities