Production Planning in Automated Manufacturing