Battery storage -optimisation problem_charge and discharge

조회 수: 15 (최근 30일)
NN
NN 2021년 8월 4일
댓글: Walter Roberson 2021년 8월 22일
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
Walter Roberson
Walter Roberson 2021년 8월 22일
The model there is not compatible with the function at https://www.mathworks.com/matlabcentral/answers/891877-battery-storage-optimisation-problem_charge-and-discharge#comment_1693172 -- the function has fewer inputs than the Simulink model is passing in.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by