“How can we configure our MATLAB/Simulink model so that the battery supplies part of the load (for peak-shaving), instead of all power being drawn through the transformer?”
46 views (last 30 days)
Show older comments
Hello,
We have developed a MATLAB/Simulink simulation where we are attempting to integrate a battery on the low-voltage side of the system. The purpose of this setup is to perform energy peak-shaving — i.e., to supply part of the load from the battery whenever the transformer becomes heavily loaded, instead of upgrading to a larger transformer.
However, in our current implementation the load is not being supplied from the battery, and no power is being drawn from it. We are also uncertain whether we have selected the correct components for this configuration.
Could you assist us in identifying the cause of these issues and suggest possible improvements?
Our circuit diagram is attached for reference.
Thank you in advance.

0 Comments
Accepted Answer
Leepakshi
on 18 Nov 2025 at 8:40
Hi Martin,
To enable peak-shaving with a battery in Simulink, ensure the battery is connected through a bidirectional DC-DC converter and inverter rather than directly to the AC side, as this allows controlled power flow. Implement a control strategy that monitors transformer loading and commands battery discharge when a threshold is exceeded.
Refer to below link for documentation on Peak Shaving with Battery Energy Saving:
Try contacting Mathworks Support if this doesn't solve the issue:
Hope it helps!
0 Comments
More Answers (0)
See Also
Categories
Find more on Energy Storage in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!