How can I change the initial battery charge of the example microgrid in Matlab?

조회 수: 3 (최근 30일)
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%?

채택된 답변

Jeremy
Jeremy 2020년 2월 21일
편집: Jeremy 2020년 2월 21일
If you right click on the Battery_Simple_Dynamics subsystem, you can go to Mask -> Look Under Mask. Here, you will see that the state of charge is being computed in this subsystem. The AH*0.2*3600 constant block after changing to AH*0.1*3600 I then see an initial charge state of 90%.

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 2월 21일
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%.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by