how to write this equation in matlab

1 次查看(过去 30 天)
I am trying to write this equation in matlab, so this is what I wrote, but it is always give me the minimim range
prob.Constraints.energyStorage(1) = ESS_SOC(1) == 10;
prob.Constraints.energyStorage(2:T) = ESS_SOC(2:T) == ESS_SOC(1:T-1) + (0.85/M)* ESS_ch(1:T-1) - (M/0.80)*ESS_disch(1:T-1);
prob.Constraints.soc = ESS_SOC >= ESS_SOC_min ;
prob.Constraints.soc1 = ESS_SOC <= ESS_SOC_max ;
the state of charge awalys at the min value which is 0.2 or 20%

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by