TWO STAGE OPTIMAL SCHEDULING BASED ON THE