Real-Time Nonlinear Model Predictive Control for Microgrid Operation
We present a real-time feasible Nonlinear Model Predictive Control (NMPC) scheme to control a microgrid described by a detailed Differential Algebraic Equation (DAE). Our NMPC formulation allows to consider secondary voltage and frequency control, steady-state equal load sharing, economic goals and all relevant operational constraints in a single optimization problem. The challenge is to control the fast and large dynamical system in real-time. To achieve this goal, we use the recently introduced Advanced Step Real-Time Iteration (AS-RTI) scheme and its efficient implementation in the acados software package. We present an NMPC scheme which delivers feedback in the range of milliseconds. Thereby, the controller responds efficiently to large disturbances and mismatches in the predictions and effectively controls the fast transient dynamics of the microgrid. Our NMPC approach outperforms a state-of-the-art I-controller usually used in microgrid control and shows minor deviation to a fully converged NMPC approach.