Large-Scale Non-Linear Dynamic Optimization For Combining Applications of Optimal Scheduling and Control