91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

本資源是Mgasa算法解決TSP問題的Matlab代碼,資源中包括mgasa_main(Mgasa算法解決TSP問題代碼),mgasa_fitness(適應度求取函數代碼),mgasa_annealing(Mgasa算法中模擬退火代碼),mgasa_select(遺傳算法中選擇函數代碼),mgasa_crossover(遺傳算法中染色體交叉互換函數代碼),mgasa_mutation(遺傳算法中基因突變函數代碼),mgasa_change(Mgasa算法中選擇過程代碼)。同時代碼中有Location矩陣,其中30個坐標作為TSP問題的例子。

資源截圖

代碼片段和文件信息

function?child=mgasa_annealing(TemppopdisConstantfitnessn)
%??Editor?????:?lfr_0531
%??Date???????:?2015.1.20
%??input:??pop:?an?input?array?contains?the?routes.
%??????????dis:?an?inout?array?of?the?distance.
%??????????Constant:the?number?of?the?inner?loop.
%??????????fitness:?an?array?of?the?fitness?data.
%??????????n:?the?number?of?the?child‘s?sample.?
%??output:?the?array?of?the?child.
Iloop=0;
pm=0.1;
while?Iloop????[parentsmax_pop]=mgasa_select(popfitnessn-2);?%選擇
????parents_fitness=mgasa_fitness(parentsdis);
????child=mgasa_crossover(parents);????????????????????%交叉
????child=mgasa_mutation(childpm);????????????????????%變異
????child_fitness=mgasa_fitness(childdis);????????????%子代適應度
????child=mgasa_change(childparentschild_fitnessparents_fi

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????417??2016-01-27?19:25??Location.mat
?????文件?????????980??2016-01-27?20:17??mgasa_annealing.m
?????文件?????????820??2016-01-27?20:25??mgasa_change.m
?????文件?????????862??2016-01-27?20:16??mgasa_crossover.m
?????文件?????????535??2016-01-27?19:51??mgasa_fitness.m
?????文件????????2049??2016-01-27?22:40??mgasa_main.m
?????文件?????????683??2016-01-27?20:18??mgasa_mutation.m
?????文件?????????570??2016-01-27?20:15??mgasa_select.m

評論

共有 條評論