GAOT工具箱设置交叉概率和变异概率

推荐阅读《基于Matlab 遗传算法工具箱的优化计算实现-陈秋莲》这篇论文

关于GAOT工具箱具体信息可自行百度,这里主要看一下GAOT工具箱怎么设置交叉概率和变异概率。

首先看一下GAOT工具箱中ga.m的解释

ga run a genetic algorithm
  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])

那我直接摘取论文中以下解释:
在这里插入图片描述

所以从这里看出,大多数情况下GA算法的选择方法是轮盘赌方法,在GAOT工具箱可以使用其他选择方法,而且可以设置选择概率。在交叉操作中,如果你使用GAOT中的arithXover方法,那么交叉概率是随机的:
在这里插入图片描述
但是我们可以自己设置啊,比如上图我设置交叉概率为0.4即可。

  • 4
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
### 回答1: 北卡高工具箱是一个非常实用的工具包,可以在很多不同的领域和任务中使用。如果你需要下载北卡高工具箱,可以通过以下几种方法: 1. 官方网站:北卡高工具箱官方网站上提供了下载链接,你可以通过访问该网站来获取最新版本的工具箱。在官网上下载的工具箱可以保证安全可靠,同时也会及时更新。 2. 第三方下载站点:除了官网外,一些第三方网站也提供了北卡高工具箱的下载链接。这些网站主要针对一些技术爱好者和高级用户,因此需要谨慎选择,以免下载到感染恶意软件的版本。 3. P2P下载:有些用户可能会通过P2P网络进行下载。这种方法通常不太安全,因为下载的文件可能会包含病毒和其他恶意软件。因此,如果想通过P2P进行下载,需要保证自己的计算机安全并寻找可靠的下载资源。 总之,无论你采用哪种方法下载北卡高工具箱,都需要保证安全、可靠,并及时获取最新版本。同时,还需要了解工具箱的功能和使用方法,才能充分发挥其优势,提高工作效率。 ### 回答2: 北卡gaot工具箱是一款优秀的工具软件,可以帮助用户快速有效地处理各种图像和视频数据。如果您需要使用这款软件,可以通过多种方式进行下载。 首先,您可以通过在搜索引擎中输入“北卡工具箱下载”进行搜索,并选择权威网站进行下载。常见的下载网站包括官方网站、CSDN、Github等。可以通过这些网站在线下载或获取安装包进行离线下载。 其次,如果您需要获取最新版本的北卡gaot工具箱,可以直接从官方网站进行下载。官方网址为 https://gaotnorthcarolina.github.io/northcarolina-gaot/ 。在官方网站中,您可以找到最新版本的软件和用户手册,以及相关的知识文档资料,方便您更好地了解和使用该软件。 总之,无论您是通过搜索引擎还是官方网站下载北卡gaot工具箱,都需要注意下载来源,避免下载不安全的版本或资源。另外,为了保证软件的稳定性和安全性,您还需要在使用过程中按照软件使用手册和相关教程进行操作。
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值