登录
首页 » matlab » ga

ga

于 2012-04-28 发布 文件大小:2KB
0 223
下载积分: 1 下载次数: 1

代码说明:

说明:  GA算法代码 function pop=initpop(popsize,chromlength) pop=round(rand(popsize,chromlength)) rand 随机产生每个单元为 {0,1} 行数为 popsize,列数为 chromlength 的矩阵, roud 对矩阵的每个单元进行圆整。这样产生的初始种群。 2.2 计算目标函数值 2.2.1 将二进制数转化为十进制数(1) 遗传算法子程序 Name: decodebinary.m 产生 [2^n 2^(n-1) ... 1] 的行向量,然后求和,将二进制转化为十进制(GA algorithm code function pop=initpop(popsize,chromlength) pop=round(rand(popsize,chromlength)) rand 随机产生每个单元为 {0,1} 行数为 popsize,列数为 chromlength 的矩阵, roud 对矩阵的每个单元进行圆整。这样产生的初始种群。 2.2 计算目标函数值 2.2.1 将二进制数转化为十进制数(1) 遗传算法子程序 Name: decodebinary.m 产生 [2^n 2^(n-1) ... 1] 的行向量,然后求和,将二进制转化为十进制)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • BBO
    matlab coding forbbo
    2012-01-20 22:35:07下载
    积分:1
  • 基于SVM对高光谱图像进行分类MATLAB仿真
    说明:  基于SVM对高光谱图像进行分类MATLAB仿真(Classification of hyperspectral images based on SVM)
    2020-04-28 22:47:28下载
    积分:1
  • MATLAB_game
    用MATLAB实现了俄罗斯方块这个游戏,百分百能玩,包中有源码,且有设计报告,方块下降速度可调。(MATLAB for this game tetris, 100 can play, package design, and is the source, report decreasing speed can be adjusted.)
    2010-07-14 21:19:41下载
    积分:1
  • costas_loop
    科斯塔斯环基于simulink的仿真 已封装(costas loop in simulink-based simulation Encapsulation)
    2012-03-26 15:25:51下载
    积分:1
  • power_seriesbranch
    power_seriesbranch,功率电子领域matlab仿真文件,已经验证过,程序运行正常( power_seriesbranch,Power electronics field matlab simulation file, has already been verified, the normal operating procedures)
    2013-07-14 12:30:45下载
    积分:1
  • image_compress
    本程序利用奇异值分解对3通道彩色图像进行压缩分解,具体步骤如下: 压缩过程: 1. 选取子图像大小K值,把图像分解成M×M个子图像,IMG(s),s=1,2,…, M2,其中M=N/K,原始图像IMG大小为N×N。 2. 计算这M2个子图像的平均值average,对每幅子图像减去均值图像得到新图像。 3. 计算相关矩阵R,其元素定义为 。 4. 计算R的特征值与特征向量,计算每幅子图像与最大特征向量的内积,便得到编码,即压缩后的图像。 (This procedure using singular value decomposition of 3-channel color image compression decomposition, concrete steps are as follows: compression process: 1. Select the sub-image size K value, the image is decomposed into M × M sub-image, IMG (s), s = 1, 2, ..., M2, in which M = N/K, the original image IMG size N × N. 2. M2 calculate the average of sub-image average, for each sub-image minus the new images mean images. 3. Calculation of correlation matrix R, defined as its elements. 4. Calculation of the characteristics of R value and eigenvector calculated each sub-image with the largest eigenvector of the inner product, they will have to code, that is, the compressed images.)
    2008-01-03 23:00:33下载
    积分:1
  • Hychen
    本程序实现了Chen超混沌系统,把两个文件放在一个文件夹内就可以实现了。(This program implements Chen hyperchaotic system, the two files in a folder can be achieved.)
    2010-01-07 21:07:31下载
    积分:1
  • bitflip
    迭代解码算法Bit Flipping Algorithm,使用时先载入校验矩阵(Iterative decoding algorithm Bit Flipping Algorithm, using the check matrix when the first load)
    2011-05-30 20:47:35下载
    积分:1
  • VSR_double
    simulink环境下的双极性PWM控制的单向电压型整流器的模型(simulink environment bipolar PWM control unidirectional voltage source rectifier model)
    2013-08-04 17:54:40下载
    积分:1
  • fuzzy
    利用模糊算法进行控制的matlab源代码(code for fuzzy control)
    2010-07-10 20:24:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载