Optimizing Industrial Automation