1024手机基地看电影,午夜福利视频导航,国产精品福利在线一区,亚洲欧美日韩另类成人,在线观看午夜日本理论片,成年超爽免费网站,国产精品成人免费,精品动作一级毛片,成人免费观看网站,97精品伊人久久大香蕉
標(biāo)題:
Genetic algorithm matlab源碼
[打印本頁]
作者:
mm.rad
時間:
2018-4-27 21:49
標(biāo)題:
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
復(fù)制代碼
所有資料51hei提供下載:
Genetic.rar
(2.13 KB, 下載次數(shù): 4)
2018-4-27 21:49 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.raoushi.com/bbs/)
Powered by Discuz! X3.1