Resumen:
Microgrids have become an alternative for integrating distributed generation to supply 11 energy to isolated communities, so their control and optimal management are important. This re- 12 search designs and simulates the three levels of control of a DC microgrid operating in isolated 13 mode, proposes an Energy Management System (EMS) based on Model Predictive Control (MPC), 14 with real-time measurement feedback for optimal energy dispatch, which ensures power flow dis- 15 tribution and operation at minimum cost while extending the lifespan of the BESS. The EMS can 16 react to disturbances produced in the lower control levels. The microgrid's performance is analyzed 17 and compared in two scenarios without EMS, and with EMS against changes in irradiation and 18 changes in electricity demand. The fulfillment of the power balance is evaluated by analyzing the 19 power delivered by each generation unit, the operating cost, and the state of charge of the battery 20 (SOC).