How can I change the initial battery charge of the example microgrid in Matlab?
Show older comments
Hello, I'm working with the example microgrid that comes with Matlab/Simulink as shown here:
It can be accessed by typing in 'power_microgrid' in the terminal.
The battery charge is initialized to 80%.
How can I change this value to something else, say 90%?
Accepted Answer
More Answers (1)
Fangjun Jiang
on 21 Feb 2020
1 vote
Right click, Mask, Look under Mask
Find the Constant block showing "AH*0.2*3600". "0.2" is the determing value. Change it to be 0.1 to make the initial SOC as 90%.
Categories
Find more on Sources 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!