Integrated scheduling algorithm for schedule generation