资源简介
PARTICLE SWARM OPTIMIZTION FOR DG PLACEMENT
代码片段和文件信息
% The implementation of PSO program to find the location and size of DG.
% The user can make m-files for bus data line data and additional file myloss.m
% before using this program as per the user requirement with support files.
% The basic reffence papers for this program “James Kennedy and Russell Eberhart“ on
% PSO
% Author: AASHISH KUMAR BOHRE MANIT BHOPAL MP INDIA
clear all
clc
[basemva busdata linedata]= Mydgalldata;
up=28; low=0.001; accuracy = 0.001; maxiter = 10;
qwe=busdata;
for bss=4:1:16
aasuu=aasuu1;
aasuu(bss1)=2;
n=length(qwe(:1));
Dn= n-6;
itera_max = 10; c1 =2; c2 = 2; R1 = 0.5; R2 = 0.5;
Pdg=rand(Dn1).*(up-low)+low;
current_pop = [Pdg];
current_fitnsssss=ones(Dn1).*inf;
local_best_fitnsssss = current_fitnsssss;
[global_best_fitnsssssg] = min(local_best_fitnsssss);
local_best_pop = current_pop;
globl_best_pop = local_best_pop(g:);
velocity = rand(Dn1).*0.5;
itera = 0 ;
while ( itera < itera_max )
itera = itera + 1;
w=(itera_max-itera)/itera_max;
velocity = w *velocity + c1*rand.*(local_best_pop-current_pop)+...
c2*rand.*((ones(Dn1)*globl_best_pop)-current_pop);
current_pop = current_pop + velocity;
for i=1:Dn
if current_pop(i:) current_pop(i:)=low;
elseif current_pop(i:)>up
current_pop(i:)=up;
end
end
p_g=gar;
for dgb=1:1:Dn
p_g(bss1)=current_pop(dgb1);
aai=p_g(bss1);
myloss
ajj = real(myloss);
fitP_LOSS(dgb)=ajj;
end
current_fitnsssss=fitP_LOSS‘;
for i = 1 : Dn
if current_fitnsssss(i:) < local_best_fitnsssss(i:)
local_best_fitnsssss(i:) = current_fitnsssss(i:);
local_best_pop(i:) = current_pop(i:);
end
end
[current_global_best_fitnsssssg] = min(local_best_fitnsssss);
if current_global_best_fitnsssss < global_best_fitnsssss
global_best_fitnsssss = current_global_best_fitnsssss;
end
globl_best_pop = local_best_pop(g:);
minfit(itera)=global_best_fitnsssss;
itera
end
global_best_fitnsssss
globl_best_pop
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1509 2020-09-19 08:46 license.txt
文件 2620 2020-09-19 08:46 PSO_dg_prog.m
相关资源
- matlab调用xfoil程序计算翼型升阻力力矩
- 卷积(convolutional )受限玻尔兹曼机(
- raw图转换为rgb图 (raw 2 rgb)
- MOPKSVD等算法的图像稀疏表示代码
- matlab实现的偏最小二乘PLS和一个实例
- 构造B样条小波和基于小波变换模极大
- matlab生成网格编号每个单元的节点号
- Enkf 卡尔曼程序
- PIO算法
- CSR sim 压缩感知雷达信号处理matlab仿真
- wind matlab 量化投资
- 基于PSO的PMU配置的简易实例 (PSO ba
- 计算信号LZ复杂度的MATLAB代码
- matlab一维条形码识别程序
- Spatial Econometrics MATLAB 软件包是将New
- jpg 2 rgb565 matlab code 实现将jpg格式的图
- matlab S-function 编写的离散状态空间表
- matlab重现 正弦信号 重复控制器
-
matlab radar simuli
nk system matlab雷达系统 - matlab图像质心提取
- 基于博弈论的认知无线电无线资源分
- surf算法的matlab代码
- RBF and svm matlab code matlab回归预测的源
- msd CPM多符号检测算法调制解调
- BP神经网络进行多分类matlab代码 (c
- matlab遗传算法 决车辆路径最优化问题
- matlab频域自适应滤波器(FDAF)演示
- reliefF算法的matlab源代码
- ECG心电信号matlab仿真画图
- matlab变色龙聚类算法(chameleon-cluste
评论
共有 条评论