Conference article

A Modelica-based solution for the simulation and optimization of microgrids

Stephane Velut
Modelon AB

Johan Andreasson
Modelon AB

Jiri Navratil
Modelon AB

Marcus Åberg
Modelon AB

Download article

Published in: Proceedings of Asian Modelica Conference 2020, Tokyo, Japan, October 08-09, 2020

Linköping Electronic Conference Proceedings 174:5, s. 41-47

Show more +

Published: 2020-11-02

ISBN: 978-91-7929-775-6

ISSN: 1650-3686 (print), 1650-3740 (online)


By integrating a high share of distributed generation units, microgrids can accelerate the shift to a more sustainable power grid. This transition is however not free from challenges. The variability and uncertainty of the renewable energy sources as well as the absence of large-scale dispatchable storage systems pose challenges for the integration and operation of this new power grid concept. Model-based engineering can provide valuable tools to develop control strategies that do not jeopardize the stability and reliability of the power supply. This paper presents elements of a Modelica-based workflow for the design and operation of microgrids. The framework allows for a multi-fidelity modeling approach and is therefore suitable for solving a large variety of engineering problems, from early component design to the verification of component and control design using detailed models. Examples of analyses presented in the paper include optimization problems like demand charge reduction and battery sizing, and also the detailed simulation of electrical transients during the transition between islanded and connected modes.


microgrid, control, dynamic optimization, peak shaving, battery sizing, inverter control, grid connection


No references available

Citations in Crossref