prohibited operation zone in Economic Dispatch using LSA code

3 次查看(过去 30 天)
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 中查找有关 Mathematics and Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by