Nonlinear Model Predictive Control and Dynamic Real Time Optimization for Large-scale Processes