DC Microgrid Demo

This will show the fundamentals of DC microgrid control integrating distributed generators and converters.

You are now following this Submission

The model includes: local slack bus, PV system, batteries, and DC loads.
Local slack bus uses a simplified VSC converter connected with the AC grid.
(A detailed VSC+AC grid model decreases the running speed, if you want a detail model, please contact me.)
PV system uses a standard PV model + a boost converter.
Battery uses a standard Li-ion battery model + a dual-active-bridge converter.
Demands are connected through buck converters.
The voltage on the DC bus is controlled by the grid-interconnected VSC, "Local slack bus".

You can play with the swiches on the bus, and the control in the components to see the power flow.

Cite As

Chunpeng LI (2026). DC Microgrid Demo (https://www.mathworks.com/matlabcentral/fileexchange/69223-dc-microgrid-demo), MATLAB Central File Exchange. Retrieved .

Li, Chunpeng, et al. “Metrology Requirements of State-of-the-Art Protection Schemes for DC Microgrids.” The Journal of Engineering, vol. 2018, no. 15, Institution of Engineering and Technology (IET), Oct. 2018, pp. 987–92, doi:10.1049/joe.2018.0254.

View more styles

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.0.0