Energy management systems (EMS) help to optimize the usages of distributed energy resources (DERs) in microgrids, particularly when variable pricing and generation are involved. This example walks through the process of developing an optimization routine that uses forecast pricing and loading conditions to optimally store/sell energy from a grid-scale battery system. Two approaches are demonstrated: a heuristic state machine strategy and the linear program-based optimization approach.
The main example uses a full microgrid simulation for validation of the EMS optimization algorithm. However, there is a purely MATLAB/Optimization Toolbox example that shows the formulation of the optimization without the validation study.
Jonathan LeSage (2020). Microgrid Energy Management System (EMS) using Optimization (https://www.mathworks.com/matlabcentral/fileexchange/73139-microgrid-energy-management-system-ems-using-optimization), MATLAB Central File Exchange. Retrieved .