| 查看: 641 | 回复: 3 | |||
| 当前主题已经存档。 | |||
| 【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 blumt 的 5 个金币 | |||
[交流]
【求助】遗传算法的问题!困扰我很久了!大侠帮忙!
|
|||
|
在遗传算法 gaot 工具箱中,交叉概率和变异概率怎样设置? 它们的参数分别是,xOverFNs,xOverOps,mutFNs,mutOps等,有人设置的为['arithXover'],[2],nonUnifMutation',[2 gen 3] 前两个是交叉函数和交叉选项,后两个是变异函数和变异选项,从字面理解,好像选用的是算术交叉和非均匀变异。请问这分别代表什么意思呢?从这些设置如何看出这两个概率的具体数值? 又如当xOverOps设为[2 0;2 3;2 0]是什么意思? 又如,我想设置交叉概率0.9,变异概率0.05,该怎么做? 谢谢!!! gaot工具箱的函数等可以参看http://www.ise.ncsu.edu/mirage/GAToolBox/gaot/gaotindex.html 以下是ga.m函数的说明文件: function [x,endPop,bPop,traceInfo]=ga(bounds,evalFN,evalOps,startPop,opts, termFN,termOps,selectFN,selectOps, xOverFNs,xOverOps,mutFNs,mutOps) Output Arguments: x - the best solution found during the course of the run endPop - the final population bPop - a trace of the best population traceInfo - a matrix of best and means of the ga for each generation Input Arguments: bounds - a matrix of upper and lower bounds on the variables evalFN - the name of the evaluation .m function evalOps - options to pass to the evaluation function ([NULL]) startPop - a matrix of solutions that can be initialized from initialize.m opts - [epsilon prob_ops display] change required to consider two solutions different, prob_ops 0 if you want to apply the genetic operators probabilisticly to each solution, 1 if you are supplying a deterministic number of operator applications and display is 1 to output progress 0 for quiet. ([1e-6 1 0]) termFN - name of the .m termination function (['maxGenTerm']) termOps - options string to be passed to the termination function ([100]). selectFN - name of the .m selection function (['normGeomSelect']) selectOpts - options string to be passed to select after select(pop,#,opts) ([0.08]) xOverFNS - a string containing blank seperated names of Xover.m files (['arithXover heuristicXover simpleXover']) xOverOps - A matrix of options to pass to Xover.m files with the first column being the number of that xOver to perform similiarly for mutation ([2 0;2 3;2 0]) mutFNs - a string containing blank seperated names of mutation.m files (['boundaryMutation multiNonUnifMutation ... nonUnifMutation unifMutation']) mutOps - A matrix of options to pass to Xover.m files with the first column being the number of that xOver to perform similiarly for mutation ([4 0 0;6 100 3;4 100 3;4 0 0]) 希望大侠帮忙解决,不胜感激!这个问题困扰我很久了 |
» 猜你喜欢
全日制(定向)博士
已经有5人回复
假如你的研究生提出不合理要求
已经有10人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复
Materials Today Chemistry审稿周期
已经有4人回复
参与限项
已经有3人回复
实验室接单子
已经有4人回复
对氯苯硼酸纯化
已经有3人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有12人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复
woshilsh
荣誉版主 (职业作家)
- 应助: 43 (小学生)
- 贵宾: 10.33
- 金币: 21115.1
- 散金: 737
- 红花: 22
- 帖子: 3777
- 在线: 639.7小时
- 虫号: 293038
- 注册: 2006-11-04
- 专业: 计算机应用技术
- 管辖: 仿真模拟

2楼2008-11-26 20:08:31
3楼2008-11-26 21:43:38

4楼2009-10-11 15:28:07












回复此楼