Automated Production Planning and Optimization