prohibited operation zone in Economic Dispatch using LSA code

조회 수: 3 (최근 30일)
ASIF
ASIF 2023년 11월 16일
I am also facing the problem of implementing these Prohibited operation zone values as; Pg1-> [210 240] [350 380]; Pg2-> [90 110] [140 160]; Pg3-> [150 170] [210 240]; Pg4-> [80 90] [110 120]; Pg5-> [90 110] [140 150]; Pg6-> [75 85] [100 105]; for 6 generators using LSA. My problem is that I want to try these vector values with ramp limit coefficients. kindly help me in this to implement POZ values in LSA Code;
low=[320 80 100 60 100 50]; %Ramp Limits
up=[500 200 300 150 200 120];
%low=[]; % lower PoZ boundary or minimum power
%up= []; % upper PoZ boundary
if size(up,2)==1
UB = ones(1,D).*up;
LB = ones(1,D).*low;
end
if size(up,2)>1
UB = up;
LB = low;
end
%% %%%%%%%%%%%%%%% randomly create 1st population %%%%%%%%%%%%%%%%%%%
for d = 1:D
Dpoint(:,d)= rand(N,1)*(UB(d)-LB(d))+LB(d);
end
for i = 1:N
violation = any(Dpoint(i,:) < Pmin | Dpoint(i,:) > Pmax); % Check if it violates constraints
while violation
Dpoint(i,:) = rand(1,D)*(UB-LB) + LB; % Generate a random solution
violation = any(Dpoint(i,:) < Pmin | Dpoint(i,:) > Pmax); % Check if it violates constraints
end
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by