Integrated Scheduling Optimization Algorithm in Vertical and Horizontal Direction