A method of optimizing production using the Master Production Schedule while taking into account constraints on labor and resources such as machinery.