freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

遺傳算法及優(yōu)化問(wèn)題重要有代碼-資料下載頁(yè)

2025-03-26 04:39本頁(yè)面
  

【正文】 ulationFitness/SumPopulationFitness。【程序說(shuō)明】子程序 用于計(jì)算群體中每個(gè)染色體的入選概率,輸入?yún)?shù)為群體中染色體的適應(yīng)函數(shù)值PopulationFitness.附錄8:子程序 function NewPopulation=Select(Population,PopulationProbability,MemberNumber)CProbability(1)=PopulationProbability(1)。for i=2:MemberNumber CProbability(i)=CProbability(i1)+PopulationProbability(i)。endfor i=1:MemberNumber r=rand(1)。 Index=1。 while rCProbability(Index) Index=Index+1。 end NewPopulation(i,:)=Population(Index,:)。end【程序說(shuō)明】子程序 根據(jù)入選概率(計(jì)算累計(jì)概率)在群體中按比例選擇部分染色體組成種群,該子程序的3個(gè)輸入?yún)?shù)分別為:群體Population,入選概率PopulationProbability,群體中染色體的個(gè)數(shù)MemberNumber.附錄9:子程序 function NewPopulation=Crossing(Population,FunctionFitness,MinX,MaxX,MumberLength)%%PopulationFitness=%% Fitness(Population,FunctionFitness,MinX,MaxX,MumberLength)。%%PopulationProbability=Probability(PopulationFitness)。%%[SortResult,SortSite]=sort(PopulationProbability)。%%Population=Population(SortSite,:)。Dim=size(Population)。if Dim(1)=3 Temp=Population(Dim(1),:)。 Population(Dim(1),:)=Population(Dim(1)1,:)。 Population(Dim(1)1,:)=Temp。endfor i=1:2:Dim(1)1 SiteArray=randperm(Dim(2))。 Site=SiteArray(1)。 Temp=Population(i,1:Site)。 Population(i,1:Site)=Population(i+1,1:Site)。 Population(i+1,1:Site)=Temp。endNewPopulation=Population?!境绦蛘f(shuō)明】子程序 用于群體中的交叉并產(chǎn)生新群體.其輸入?yún)?shù)為:Population, FunctionFitness,MinX,MaxX,MumberLength.附錄10:function NewPopulation=Mutation(Population,MutationProbability)Dim=size(Population)。for i=1:Dim(1) Probability=rand(1)。 Site=randperm(Dim(2))。 if ProbabilityMutationProbability if Population(i,Site(1))==1 Population(i,Site(1))=0。 end if Population(i,Site(1))==0 Population(i,Site(1))=1。 end endendNewPopulation=Population。【程序說(shuō)明】.輸入?yún)?shù)為:群體Population和變異概率MutationProbability.附錄11:function [NewPopulationIncludeMax,CurrentBest,EachGenMaxFitness]=Elitist(Population,PopulationFitness,MumberLength)global Count CurrentBest。[MinFitness,MinSite]=min(PopulationFitness)。[MaxFitness,MaxSite]=max(PopulationFitness)。EachGenMaxFitness=MaxFitness。if Count==1 CurrentBest(1:MumberLength)=Population(MaxSite,:)。 CurrentBest(MumberLength+1)=PopulationFitness(MaxSite)。else if CurrentBest(MumberLength+1)PopulationFitness(MaxSite)。 CurrentBest(1:MumberLength)=Population(MaxSite,:)。 CurrentBest(MumberLength+1)=PopulationFitness(MaxSite)。 endPopulation(MinSite,:)=CurrentBest(1:MumberLength)。endNewPopulationIncludeMax=Population?!境绦蛘f(shuō)明】(“優(yōu)勝劣汰”思想).輸入?yún)?shù)為:群體Population, 目標(biāo)函數(shù)值PopulationFitness和染色體個(gè)數(shù)MumberLength.山水是一部書(shū),枝枝葉葉的文字間,聲聲?shū)B(niǎo)鳴是抑揚(yáng)頓挫的標(biāo)點(diǎn),在茂密縱深間,一條曲徑,是整部書(shū)最芬芳的禪意。春風(fēng)翻一頁(yè),桃花面,杏花眼,柳腰春細(xì);夏陽(yáng)讀一頁(yè),薔花滿架,木槿錦繡、合歡幽香、蜀葵閑澹,一派崢嶸;秋風(fēng)傳一頁(yè),海棠妝歡,野菊淡姿,高遠(yuǎn)深邃;冬雪潤(rùn)一頁(yè),水仙臨水一舞,臘梅素心磬口,向愛(ài)唱晚。 專(zhuān)業(yè)資料 值得擁有
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1