欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標題:
Genetic algorithm matlab源碼
[打印本頁]
作者:
mm.rad
時間:
2018-4-27 21:49
標題:
Genetic algorithm matlab源碼
Genetic algorithm optimization matlab
0.jpg
(26.78 KB, 下載次數(shù): 56)
下載附件
2018-4-28 01:35 上傳
源程序如下:
function [ new_demand ] = line_demand( line,demands,TT1,buscap )
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
new_demand=demands;
timeofline =TimeofLine(line,TT1);
for i=1:length(line)-1
cap=round(buscap*(30/timeofline));
if(line(i)==0 | line(i+1)==0 )
break;
else
j=1;
while(demands(line(i),line(i+j))<1)
cap=cap-demands(line(i),line(i+j));
new_demand(line(i),line(i+j))= 0;
new_demand(line(i+j),line(i))= 0;
j=j+1;
if((i+j)>10)
break;
end
if (line(i+j)==0)
break;
end
end
if((i+j)>10)
break;
end
if (line(i+j)~=0)
if(demands(line(i),line(i+j))>0)
new_demand(line(i),line(i+j))= demands(line(i),line(i+j))-cap;
new_demand(line(i+j),line(i))= demands(line(i+j),line(i))-cap;
end
end
end
end
end
復制代碼
所有資料51hei提供下載:
Genetic.rar
(2.13 KB, 下載次數(shù): 4)
2018-4-27 21:49 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.raoushi.com/bbs/)
Powered by Discuz! X3.1