24小时热门版块排行榜    

查看: 641  |  回复: 3
当前主题已经存档。
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 blumt 的 5 个金币

blumt

金虫 (小有名气)

[交流] 【求助】遗传算法的问题!困扰我很久了!大侠帮忙!

在遗传算法 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])


希望大侠帮忙解决,不胜感激!这个问题困扰我很久了
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

woshilsh

荣誉版主 (职业作家)

优秀版主

★ ★
sunxiao(金币+2):谢谢W版的支持,呵呵 1-27 03:30
直接在这个函数里给这两个参数赋值,试试看,应该可以的
[center][url=http://www.91cool.net/][img]http://id.91cool.net/sign/?name=小木虫印&say=各位版主辛苦了![/img][/url][/center]
2楼2008-11-26 20:08:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

blumt

金虫 (小有名气)

你好woshilsh,我的意思是,运行这个程序是没有问题的,但就是不知道如何设概率,也不知道上述设置的条件下,概率是多少。
3楼2008-11-26 21:43:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhaoguoxi

铜虫 (正式写手)

你的问题很好
期待高手
不见武林豪杰墓,无花无酒锄作田
4楼2009-10-11 15:28:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 blumt 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见