Online Machine Learning Modeling and Predictive Control of Nonlinear Systems With Scheduled Mode Transitions