SGAPublic
代码说明:
说明: SGA(Simple Genetic Algorithm)是一种强大的智能多变量优化算法,它模仿种群繁殖规律来进行优化。本SGA可以优化变量,求最小值,最大值(当把函数倒数也就求最小值) 并且支持浮点编码,grey编码,二进制编码;轮赌法选择,锦标赛选择;单点交叉,均布交叉,浮点交叉;单点变异,浮点变异;调用时Genetic(目标函数名) 使用SGA时,首先需要一个目标函数(像AimFunc.m),该函数返回适应度输入变量为待优化变量x输出为一个适应度。然后修改Genetic.m中可以修改的地方(SGA (Simple Genetic Algorithm) is a powerful smart multi-variable optimization algorithm, which mimics the reproduction of law to be optimized. The SGA can be optimized variables, minimum, maximum, (when the function will last for the minimum) and supports the floating-point encoding, grey code, binary code round of betting method selection, tournament selection single-point crossover, uniform crossover , floating-point crossover single point mutation, floating-point mutation called Genetic (objective function name) the use of SGA, first of all need an objective function (like AimFunc.m), the fitness function returns the input variables to be optimized for the output variable x a fitness. Can be modified and then modify the place Genetic.m)
文件列表:
AimFunc.m,105,2003-07-26
Code.m,887,2003-07-16
Cross.m,3484,2003-07-24
Decode.m,953,2003-07-16
Genetic.m,4081,2003-07-26
Mutation.m,2295,2003-07-16
Select.m,1502,2003-07-26
下载说明:请别用迅雷下载,失败请重下,重下不扣分!