Solve scheduling problem