資源簡(jiǎn)介
電力系統(tǒng)33節(jié)點(diǎn)粒子群算法。(一般用于配網(wǎng)重構(gòu))
代碼片段和文件信息
%%清空環(huán)境
clc
clear
%%參數(shù)初始化
%粒子群算法中的兩個(gè)參數(shù)
c1?=?1.49445;
c2?=?1.49445;
maxgen=1;???%?進(jìn)化次數(shù)??
sizepop=2;???%種群規(guī)模
Sdim?=?37;
Vmax=4;
Vmin=-4;
popmax=1;
popmin=0;
%%產(chǎn)生初始粒子和速度
%顯示環(huán)的邊組合
b1=[23456733201918];
b2=[2223243728272625543];
b3=[338910113521];
b4=[9101112131434];
b5=[87625262728293031323617161534];
pop?=?CreatPSO(sizepop);??%生成初始粒子
for?i=1:sizepop
????V(i:)=4*rands(1Sdim);??%初始化速度
????fitness(i)=PLoss(pop(i:));???%染色體的適應(yīng)度
end
%找最好的染色體
[bestfitness?bestindex]=min(fitness);
zbest=pop(bestindex:);???%全局最佳
gbest=pop;????%個(gè)體最佳
fitnessgbest=fitness;???%個(gè)體最佳適應(yīng)度值
fitnesszbest=bestfitness;???%全局最佳適應(yīng)度值
ring1?=?0;
ring2?=?0;
ring3?=?0;
ring4?=?0;
ring5?=?0;
ring6?=?0;
%?%?迭代尋優(yōu)
for?i=1:maxgen
??????j?=1;
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-24?20:34??33system\
?????文件???????16384??2013-05-24?19:30??33system\33NodeSystem.xls
?????文件????????5850??2013-05-24?19:30??33system\BPSO.asv
?????文件????????5852??2013-05-24?19:30??33system\BPSO.m
?????文件????????8080??2013-05-24?19:30??33system\BPSO1.asv
?????文件????????8080??2013-05-24?19:30??33system\BPSO1.m
?????文件?????????893??2013-05-24?19:30??33system\CreatPSO.m
?????文件???????10831??2013-05-24?19:30??33system\DOT4_001
?????文件????????3176??2013-05-24?19:30??33system\Figure.asv
?????文件????????3176??2013-05-24?19:30??33system\Figure.m
?????文件?????????457??2013-05-24?19:30??33system\FindSame.m
?????文件????????2451??2013-05-24?19:30??33system\li
?????文件????????2457??2013-05-24?19:30??33system\li
?????文件??????????52??2013-05-24?19:30??33system\Myexample.asv
?????文件????????5254??2013-05-24?20:29??33system\PLoss.m
?????文件????????1591??2013-05-24?19:30??33system\PSO.asv
?????文件????????1592??2013-05-24?19:30??33system\PSO.m
?????文件????????1855??2013-05-24?20:28??33system\Read.m
?????文件??????????45??2013-05-24?19:30??33system\Unti
?????文件????????2069??2013-05-24?19:30??33system\Unti
?????文件????????2071??2013-05-24?19:30??33system\Unti
?????文件?????????234??2013-05-24?19:30??33system\Unti
?????文件?????????234??2013-05-24?19:30??33system\Unti
?????文件??????????70??2013-05-24?19:30??33system\Unti
?????文件??????????37??2013-05-24?19:30??33system\Unti
?????文件?????????105??2013-05-24?19:30??33system\Unti
?????文件?????????125??2013-05-24?19:30??33system\Unti
?????文件??????????60??2013-05-24?19:30??33system\Unti
?????文件????????2287??2013-05-24?19:30??33system\Unti
?????文件????????2292??2013-05-24?19:30??33system\Unti
?????文件??????????69??2013-05-24?19:30??33system\Unti
............此處省略13個(gè)文件信息
評(píng)論
共有 條評(píng)論