资源简介
matlab ga工具箱,相比其他的ga工具箱,使用方法最简单的ga工具箱
代码片段和文件信息
function [child] = adjswapmutation(parboundsgenInfoOps)
% Adjswap mutation performs a swap of two adjacent
% genes in a permutation
%
% function [newSol] = adjswapmutation(parentboundsOps)
% parent - the first parent ( [solution string function value] )
% bounds - the bounds matrix for the solution space
% Ops - Options for binaryMutation [gen prob_of_mutation]
% Binary and Real-Valued Simulation Evolution for Matlab
% Copyright (C) 1996 C.R. Houck J.A. Joines M.G. Kay
%
% C.R. Houck J.Joines and M.Kay. A genetic algorithm for function
% optimization: A Matlab implementation. ACM Transactions on Mathmatical
% Software Submitted 1996.
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 1 or (at your option)
% any later version.
%
% This program is distributed in the hope that it will be useful
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. A copy of the GNU
% General Public License can be obtained from the
% Free Software Foundation Inc. 675 Mass Ave Cambridge MA 02139 USA.
sz = size(par2)-1;
pos = round(rand*(sz-1) + 0.5); %Generate U(1n-1)
child = par;
child(pos:pos+1)=[par(pos+1) par(pos)];
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-02 22:00 gaot\
文件 1487 1998-04-15 08:46 gaot\arithXover.m
目录 0 2019-05-27 20:06 __MACOSX\
目录 0 2019-05-27 20:06 __MACOSX\gaot\
文件 212 1998-04-15 08:46 __MACOSX\gaot\._arithXover.m
文件 1564 1998-04-28 08:47 gaot\singleptXover.m
文件 212 1998-04-28 08:47 __MACOSX\gaot\._singleptXover.m
文件 1345 1998-04-14 13:26 gaot\maxGenTerm.m
文件 212 1998-04-14 13:26 __MACOSX\gaot\._maxGenTerm.m
文件 157 1998-04-14 13:26 gaot\tspEval.m
文件 212 1998-04-14 13:26 __MACOSX\gaot\._tspEval.m
文件 1538 1998-04-14 13:26 gaot\coranaFeval.m
文件 212 1998-04-14 13:26 __MACOSX\gaot\._coranaFeval.m
文件 1504 1998-04-15 08:48 gaot\binaryMutation.m
文件 212 1998-04-15 08:48 __MACOSX\gaot\._binaryMutation.m
文件 6262 1998-04-14 13:26 gaot\gademo3.m
文件 212 1998-04-14 13:26 __MACOSX\gaot\._gademo3.m
文件 514 1998-04-14 13:26 gaot\plotCorana.m
文件 268 1998-04-14 13:26 __MACOSX\gaot\._plotCorana.m
文件 1555 1998-04-14 13:26 gaot\inversionMutation.m
文件 212 1998-04-14 13:26 __MACOSX\gaot\._inversionMutation.m
文件 1561 1998-04-14 15:55 gaot\initializeoga.m
文件 212 1998-04-14 15:55 __MACOSX\gaot\._initializeoga.m
文件 1648 1998-04-14 13:26 gaot\unifMutation.m
文件 212 1998-04-14 13:26 __MACOSX\gaot\._unifMutation.m
文件 6837 1998-04-28 08:17 gaot\dists.m
文件 212 1998-04-28 08:17 __MACOSX\gaot\._dists.m
文件 1419 1998-04-14 13:26 gaot\adjswapMutation.m
文件 268 1998-04-14 13:26 __MACOSX\gaot\._adjswapMutation.m
文件 4761 1998-04-17 09:46 gaot\Contents.m
文件 212 1998-04-17 09:46 __MACOSX\gaot\._Contents.m
............此处省略87个文件信息
评论
共有 条评论