Simultaneous Nonlinear Model Predictive Control And State Estimation: Theory And Applications