Battery storage -optimisation problem_charge and discharge

2 次查看(过去 30 天)
I have seperate decision variables for charge and discharge cosntraints for battery optimisation problem, but i am getting proper value as optimised outputs.
Below is the code :
% initial conditions, battery constraints
batteryMinMax.Pmin = -500e3;
batteryMinMax.Pmax = 500e3;
battEnergy = 3.6e6*upsBattCap;
batteryMinMax.Emax = 0.8*battEnergy;
batteryMinMax.Emin = 0.2*battEnergy;
%Decision variables
PbattchV = optimvar('PbattchV',N,'LowerBound',0,'UpperBound',batteryMinMax.Pmax);
EbattchV = optimvar('EbattchV',N,'LowerBound',0,'UpperBound',batteryMinMax.Emax);
PbattDchV = optimvar('PbattDchV',N,'LowerBound',0,'UpperBound',batteryMinMax.Pmin);
EbattDchV = optimvar('EbattDchV',N,'LowerBound',0,'UpperBound',batteryMinMax.Emin);
Please advice if i made any mistake.
  13 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Current Management​ 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by