Continuous Genetic Algorithm我要分享

Continuous Genetic Algorithm

matlab

关注次数: 206

下载次数: 0

文件大小: 1.61 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:运行连续遗传算法。主要参数有群体大小、突变率、选择参数(可设为常数)。程序从定义初始总体开始迭代,并按代概念运行迭代。在迭代过程中,参数将是成对的,这将导致染色体交叉。这里的染色体方法是通过单点染色体交叉。下一个函数是按指定的突变率进行突变。最终结果将使用最佳代价函数进行排序(在新的子代值发生变异之后)。停止标准是如果执行了最大迭代次数。


English Description:

To run continuous genetic algorithm. The main parameters are population size, mutations rate, selection parameter ( can be set as constant). the Program iterates starting by defining the initial populations and runs the iteration by generation concept. during the iteration, the parameters will be pairs which comes to chromosom crossover. Here the chromosom method is by single point chromosom crossover. The next function is mutation by a defined mutation rate. Final results will be sorted with the best cost function (after new offspring values are mutated). The stopping criteria is if the maximum number of iteration exeded.


代码预览