-
大小: 543KB文件類型: .rar金幣: 1下載: 0 次發布日期: 2021-01-01
- 語言: 其他
- 標簽:
資源簡介
很好的遺傳算法,能夠解決很多優化問題,優化各種問題很好的遺傳算法,能夠解決很多優化問題,優化各種問題
代碼片段和文件信息
%?This?script?shows?how?to?use?the?ga?using?a?float?representation.?
%?You?should?see?the?demos?for
%?more?information?as?well.?gademo1?gademo2?gademo3
global?bounds
%?Setting?the?seed?back?to?the?beginning?for?comparison?sake
rand(‘seed‘0)
%?Crossover?Operators
xFns?=?‘simpleXover‘;
xOpts?=?[.4];
%?Mutation?Operators
mFns?=?‘binaryMutation‘;
mOpts?=?[0.005];
%?Termination?Operators
termFns?=?‘maxGenTerm‘;
termOps?=?[200];?%?200?Generations
%?Selection?Function
selectFn?=?‘roulette‘
selectOps?=?[];
%?Evaluation?Function
evalFn?=?‘gaMichEval‘;
evalOps?=?[];
type?gaMichEval
%?Bounds?on?the?variables
bounds?=?[-3?12.1;?4.1?5.8];
%?GA?Options?[epsilon?float/binar?display]
gaOpts=[1e-6?0?1];
%?Generate?an?intialize?population?of?size?20
startPop?=?initialize(20bounds‘gaMichEval
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2002-11-08?14:01??Genetic?Algorithms
?????文件???????1790??1998-11-08?00:00??Genetic?Algorithms\binaryExample.m
?????文件???????1978??1998-11-08?00:00??Genetic?Algorithms\floatExample.m
?????文件???????1488??1998-11-08?00:00??Genetic?Algorithms\floatGrad.m
?????文件???????8183??1998-11-08?00:00??Genetic?Algorithms\ga.htmk
?????文件??????10577??1998-11-08?00:00??Genetic?Algorithms\gademo12.zip
?????文件???????7668??1998-11-08?00:00??Genetic?Algorithms\gademo13.zip
?????文件????????193??1998-11-08?00:00??Genetic?Algorithms\gaMichEval.m
?????文件?????133622??1998-11-08?00:00??Genetic?Algorithms\gaot.ps
?????文件??????90986??1998-11-08?00:00??Genetic?Algorithms\GAOT_tar.tar.gz
?????文件?????????65??1998-11-08?00:00??Genetic?Algorithms\gas.m
?????文件????????193??1998-11-08?00:00??Genetic?Algorithms\gaSimpleEval.m
?????文件????????174??1998-11-08?00:00??Genetic?Algorithms\gaZBGrad.m
?????文件????????683??1998-11-08?00:00??Genetic?Algorithms\gaZBGradEval.m
?????文件?????222033??1998-11-08?00:00??Genetic?Algorithms\geatbhtm.zip
?????文件??????83776??1998-11-08?00:00??Genetic?Algorithms\PCGAOT.zip
?????文件?????????31??1998-11-08?00:00??Genetic?Algorithms\seed.mat
?????文件?????????31??1998-11-08?00:00??Genetic?Algorithms\seed2.mat
?????文件?????????49??1998-11-08?00:00??Genetic?Algorithms\startup.m
?????文件?????109092??1998-11-08?00:00??Genetic?Algorithms\GAOT.zip
-----------?---------??----------?-----??----
???????????????672612????????????????????20
- 上一篇:ATmega16多功能萬年歷
- 下一篇:嵌入式實驗一
評論
共有 條評論