Optimal scheduling strategies of jobs belonging to different classes on a single machine with variable processing times