Optimization of Manufacturing Processes