# Microgrid-EMS-Optimization **Repository Path**: hollbobo/Microgrid-EMS-Optimization ## Basic Information - **Project Name**: Microgrid-EMS-Optimization - **Description**: Microgrid-EMS-Optimization - **Primary Language**: Matlab - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-05-22 - **Last Updated**: 2024-10-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Optimal Energy Management with Microgrid Example This example shows how optimization can be combined with forecast data to operate an Energy Management System (EMS) for a microgrid. Two styles of EMS are demonstrated in the "microgrid_WithESSOpt.slx" model: - Heuristic approach using State Machine Logic (Stateflow) - Optimization-based approach to minimize cost subject to operational constraints [![View Microgrid Energy Management System (EMS) using Optimization on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/73139-microgrid-energy-management-system-ems-using-optimization) ## Getting Started The slides, "EMS_Optimization_Formulation.pdf", walk through the formulation of the optimization problem and the assumptions that were made. Additionally, a video walkthrough of this example can be found here: https://www.mathworks.com/support/search.html/videos/energy-storage-optimization-1572452905678.html To run this demo: 1. Extract the files to a directory and navigate to that folder in MATLAB 2. Open the "microgrid_WithESSOpt.slx" model. This model should automatically add the "Resources" folder to the path 3. Run the model in either Heuristic or Optimization mode using the slider 4. The MATLAB only folder shows the optimization routine with just MATLAB code (no physical model for verification) ## Toolbox Requirements - MATLAB - Optimization Toolbox - Simulink - Simscape - Simscape Electrical - Stateflow