Advanced Planning and Scheduling Solutions takes care of actual constraints in a factory and comes up with a near optimum solution.