Description: % [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation)
% Finds a maximum of a function of several variables.
% fmaxga solves problems of the form:
% max F(X) subject to: LB <= X <= UB
% BestPop--------最优的群体即为最优的染色体群
% Trace----------最佳染色体所对应的目标函数值
% FUN------------目标函数
% LB-------------自变量下限
% UB-------------自变量上限
% eranum---------种群的代数,取100--1000(默认1000)
% popsize--------每一代种群的规模;此可取50--100(默认50)
% pcross---------交叉的概率,此概率一般取0.5--0.85之间较好(默认0.8)
% pmutation------变异的概率,该概率一般取0.05-0.2左右较好(默认0.1)
% options--------1×2矩阵,options(1)=0二进制编码(默认0),option(1)~=0十进制编码,option(2)设定求解精度(默认1e-4)- [BestPop, Trace] = fmaxga (FUN, LB, UB, eranum, popsize, pcross, pmutation) Finds a maximum of a function of several variables. Fmaxga solves problems of the form: max F (X) subject to : LB <= X <= UB BestPop-------- optimal chromosome groups is the best group Trace---------- chromosome corresponding to the best objective function value FUN------------ objective function LB------------- variable lower limit since the UB------------- variable upper limit eranum--------- populations algebra, take 100- 1000 (default 1000) popsize-------- population size of each generation this desirable 50- 100 (default 50) pcross--------- crossover probability, the probability of a general check 0.5- 0.85 between the better (default 0.8) pmutation------ mutation probability, the probability of 0.05 general admission better about-0.2 (default 0.1) options-------- 1 × 2 matrix, options (1) = 0 binary code (default 0), option (1) ~ = 0 decimal coding, option (2 ) set accuracy (default 1e-4) Platform: |
Size: 3072 |
Author:mmcc |
Hits:
Description: 改进的GA.
fga.m 为遗传算法的主程序 采用二进制Gray编码,采用基于轮盘赌法的非线性排名选择, 均匀交叉,变异操作,而且还引入了倒位操作!
-improved GA. Fga.m for the main program of genetic algorithm using binary Gray code, Based on the roulette method of nonlinear ranking choice, uniform crossover and mutation, but also to introduce the inversion operation. Platform: |
Size: 3072 |
Author:林洋 |
Hits:
Description: GA(Simple Genetic Algorithm)是一种强大的智能多变量优化算法,它模仿种群繁殖规律来进行优化。
本SGA可以优化变量,求最小值,最大值(当把函数倒数也就求最小值啦)
并且支持浮点编码,grey编码,二进制编码;轮赌法选择,锦标赛选择;单点交叉,均布交叉,浮点交叉;单点变异,浮点变异;-GA (Simple Genetic Algorithm) is a powerful, intelligent multi-variable optimization algorithms, which mimic the breeding populations of the law to be optimized. SGA can optimize this variable, and the minimum value, maximum value (when the function of the countdown you will seek the minimum value) and to support the floating-point encoding, grey code, binary code round of gambling options, tournament selection single-point crossover, uniform Cross, floating-point crossover single point mutation, floating-point variation Platform: |
Size: 9216 |
Author:yuandi |
Hits:
Description: 一种基于matlab的遗传规划编码程序 其中包含交叉和变异的代码-Based on the genetic programming matlab coding procedures of crossover and mutation which contains the code Platform: |
Size: 28672 |
Author:不吃萝卜的萝卜 |
Hits:
Description: maltab遗传算法源程序,此程序为一个一个的小程序分开的,很完整。包括编码,设定初始种群,交叉,变异,及结束条件等-maltab genetic algorithm source code, this procedure a small as a separate process, it is complete. Including encoding, set the initial population, crossover and mutation, and the end conditions Platform: |
Size: 7168 |
Author:joean |
Hits:
Description: This an implementation of Particle Swarm Optimization algorithm using
the same syntax as the Genetic Algorithm Toolbox, with some additional
options specific to PSO. Allows code-reusability when trying different
population-based optimization algorithms. Certain GA-specific parameters
such as cross-over and mutation functions will not be applicable to the
PSO algorithm. Demo function included, with a small library of test functions. Requires Optimization Toolbox.-This is an implementation of Particle Swarm Optimization algorithm using
the same syntax as the Genetic Algorithm Toolbox, with some additional
options specific to PSO. Allows code-reusability when trying different
population-based optimization algorithms. Certain GA-specific parameters
such as cross-over and mutation functions will not be applicable to the
PSO algorithm. Demo function included, with a small library of test functions. Requires Optimization Toolbox. Platform: |
Size: 4096 |
Author:Chris Leung |
Hits:
Description: 为改进遗传算法的源程序,采用了多次2-opt变异算子,进一步改进了计算结果。-The source code for the improved genetic algorithm using a number of 2-opt mutation operator to further improve the results. Platform: |
Size: 2048 |
Author:碧天 |
Hits:
Description: 包括遗传算法的各种运算(交叉,变异)的实例源程序代码-Various operations, including genetic algorithms (crossover and mutation) of the instance of the source code Platform: |
Size: 104448 |
Author:高利敏 |
Hits:
Description: 遗传算法车间调度,车间作业调度问题遗传算法
--------------------------------------------------------------------------
输入参数列表
M 遗传进化迭代次数
N 种群规模(取偶数)
Pm 变异概率
T m×n的矩阵,存储m个工件n个工序的加工时间
P 1×n的向量,n个工序中,每一个工序所具有的机床数目
输出参数列表
Zp 最优的Makespan值
Y1p 最优方案中,各工件各工序的开始时刻,可根据它绘出甘特图
Y2p 最优方案中,各工件各工序的结束时刻,可根据它绘出甘特图
Y3p 最优方案中,各工件各工序使用的机器编号
Xp 最优决策变量的值,决策变量是一个实数编码的m×n矩阵
LC1 收敛曲线1,各代最优个体适应值的记录
LC2 收敛曲线2,各代群体平均适应值的记录
最后,程序还将绘出三副图片:两条收敛曲线图和甘特图(各工件的调度时序图)-Genetic algorithm scheduling, job shop scheduling problems with genetic algorithms -------------------------------------------------------------------------- genetic evolution of the input parameter list, the number of iterations M N population size (taken even) Pm mutation probability T m × n matrix, stored m one piece n a process of processing time 1 × n vector, n a process in which each machine processes the number of Zp with the best value Y1p Optimal Makespan programs, the start time of each process the workpiece can be drawn based on its optimal solution Gantt Y2p, each time the workpiece end of the process, according to its draw Gantt Y3p optimal solution, each piece of the processes using machine code Xp optimal decision variable, decision variable is a real m × n matrix encoded LC1 convergence curve 1, the generation of the best individual record of LC2 fitness convergence curve 2, the average fitness value on behalf of groups record Finally, the program will draw three pict Platform: |
Size: 2048 |
Author:王龙隐 |
Hits:
Description: 遗传算法求函数最值问题 matlab代码 使用轮盘赌选择 交叉 变异-Genetic algorithm for function most value problem matlab code crossover and mutation using the roulette wheel selection Platform: |
Size: 1024 |
Author:小新 |
Hits:
Description: fga.m 为遗传算法的主程序 采用二进制Gray编码,采用基于轮盘赌法的非线性排名选择, 均匀交叉,变异操作,而且还引入了倒位操作!-Fga.m main program for the genetic algorithm binary gray encoding, use based on roulette method of non-linear ranking selection, uniform crossover, mutation, and also introduced the inversion operation. Platform: |
Size: 11264 |
Author:Ma Chuan |
Hits: