二位元基因演算法我要分享

Binary genetic algorithms

matlab 基因

关注次数: 193

下载次数: 0

文件大小: 719.68 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

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

代码描述

中文说明:二進制之基因演算法有編碼解碼然後選擇複製 交配 突變等等 最後找出最佳解一開始先隨機選出母代計算適應函數值後經過菁英策略將最佳的適應函數值先存放起來接下來進入輪盤法選擇染色體選完後進行交配及突變做完交配及突變後記得將先前存放起來最佳的適應函數值存到子代中然後循環做迴圈直到收斂到最佳解為止


English Description:

Binary genetic algorithms include encoding and decoding, then selecting to copy, mating, mutation and so on Finally, the best solution is found. First, the mother generation is randomly selected to calculate the fitness function value, and then the best fitness function value is stored by elite strategy. Next, the roulette method is used to select chromosomes. After selection, mating and mutation are carried out. After mating and mutation, remember to save the previously stored best fitness function value to the offspring, and then cycle until the best solution is converged


代码预览