资源简介
initialize 总群 得分的 如果惹人二个热天饿二人格人如果如果如果个人
代码片段和文件信息
function [pop] = initializega(num bounds evalFNevalOpsoptions)
% function [pop]=initializega(populationSize variableBoundsevalFN
% evalOpsoptions)
% initializega creates a matrix of random numbers with
% a number of rows equal to the populationSize and a number
% columns equal to the number of rows in bounds plus 1 for
% the f(x) value which is found by applying the evalFN.
% This is used by the ga to create the population if it
% is not supplied.
%
% pop - the initial evaluated random population 初始总群
% populatoinSize - the size of the population i.e. the number to
% create总群中的个体数目
% variableBounds - a matrix which contains the bounds of each variable i.e.
% [var1_high var1_low; var2_high var2_low; ....]代表变量的上下界
% evalFN - the evaluation fn usually the name of the .m file for
% evaluation适应度函数
% evalOps - any options to be passed to the eval function defaults
% []传递给适应度函数的参数
% options - options to the initialize function ie.
%选择编码形式
% [type prec] where eps is the epsilon value
% and the second option is 1 for float and 0 for binary
% prec is the precision of the variables defaults [1e-6 1]
% Binary and Real-Valued Simulation Evolution for Matlab GAOT V2
% Copyright (C) 1998 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 term
- 上一篇:dpso算法matlab实现
- 下一篇:灰度图像彩色化 matlab
评论
共有 条评论