optimize the schedule for fibers.