prohibited operation zone in Economic Dispatch using LSA code

2 visualizaciones (últimos 30 días)
ASIF
ASIF el 16 de Nov. de 2023
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

Respuestas (0)

Categorías

Más información sobre Dynamic System Models en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by