资源简介
使用goat遗传工具箱完成基于 模拟退火算法 优化的遗传算法。
对goat遗传工具箱,做了详细的注释。
matlab编译环境
使用说明:函数需要调用goat工具箱的相关函数

代码片段和文件信息
function [xendPopbPoptraceInfo] = ga(boundsevalFNevalOpsstartPopopts...
termFNtermOpsselectFNselectOpsxOverFNsxOverOpsmutFNsmutOps)
% goat这个工具箱是网上流传最广的一个,我仅仅针对其主函数做了注释。
%
%遗传模拟退火,termFN,selectFN内定。用时,却省或为[]也可。
%startPop=[]时,自动生成群
%termFN当为[]时,selectFN=[]select0ps=[]执行遗传模拟退火默认为maxGenTerm_th
%GA run a genetic algorithm
% function [xendPopbPoptraceInfo]=ga(boundsevalFNevalOpsstartPopopts
% termFNtermOpsselectFNselectOps
% xOverFNsxOverOpsmutFNsmutOps)
%
%x=ga(boundsevalFNevalOps)
%
%
%
%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 适应度函数所在的m文件
% 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])
% opts--选择编码形式(浮点编码或是二进制编码)[epsilon prob_ops display]如
%prob_ops-变量进行二进制编码时指定的精度
%prob_ops--为1时选择浮点编码,否则为二进制编码由precision指定精度)
%display0或1控制是否输出结果;默认为[1e-6 1 0]
% termFN - name of the .m termination function ([‘maxGenTerm‘])
% 终止函数所在的m文件,maxGenTerm为求最大值时的终止函数
% termOps - options string to be passed to the termination function 传递个终止函数的参数,一般为需要遗传的代数
% ([100]).maxGenTerm将在这里面取得最大值
% 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 maxGenTermXover 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 ...
%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-10-11 09:57 遗传模拟退火算法\
文件 16412 2007-07-23 18:00 遗传模拟退火算法\ga_th.m
文件 2179 2007-07-22 21:43 遗传模拟退火算法\遗传模拟退火算法.m
文件 3370 2007-07-22 21:43 遗传模拟退火算法\遗传模拟退火算法2. m.txt
相关资源
- MATLAB 实现各类常见算法
- matlab编写的量子遗传算法
- 协同进化遗传算法求解函数优化问题
- 基于遗传算法的旅游全国的路径最优
- 基于遗传算法的机器人路径规划matl
- 多种群遗传算法的函数优化算法(源
- 遗传算法完整MATLAB程序实数法,轮盘
- 遗传算法解决最优路径、选址问题
- 遗传算法GA车间调度Matlab代码
- 求解多旅行商(MTSP)的遗传算法的
- 基于遗传算法的小波神经网络在股票
- matlab开发-基于遗传算法的机器人运动
- 《Matlab遗传算法工具箱及应用》源码
- 遗传算法图像分割matlab+源代码
- 神经网络、遗传算法、支持向量机、
- 谢菲尔德(Sheffield)遗传算法工具箱
- 遗传算法优化支持向量机GASVM
- 遗传算法工具箱
- MATLAB遗传算法工具箱及应用.zip
- 《MATLAB 遗传算法工具箱及应用》PDF完
- 遗传算法(Genetic Algorithm)MATLAB案例详
- MATLAB遗传算法工具箱及应用》pdf版.
- 基于遗传算法的自动排课系统设计
- MATLAB.遗传算法和粒子群算法程序设计
- 多目标优化文档及代码
- 超完整规范的多目标遗传优化算法M
- 遗传算法 -- matlab ga工具箱
- MATLAB遗传算法工具箱及应用 包含PDF电
- 神经网络的43个源程序及数据
- 基于BP算法和遗传算法的自适应噪声抵
评论
共有 条评论