登录
首页 » Matlab » 遗传算法源代码

遗传算法源代码

于 2022-07-09 发布 文件大小:28.94 kB
0 74
下载积分: 2 下载次数: 1

代码说明:

%P199_8  GA clc; clear; pop_size=100;%种群大小 m=42;%每个个体的基因数目 m1=21;%每个个体中x1占的位数 m2=21;%每个个体中x2占的位数 %产生初始种群 for j=1:pop_size     for i=1:m         num=randperm(2)-1;         str_num(j,i)=dec2bin(num(1));%随机产生的二进制数,pop_size个,每个m位            end   end delta=10; cc=0;%迭代次数 while delta>0.01%for qq=1:500%大循环 for j=1:pop_size for i=1:m     if i

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

发表评论

0 个回复

  • zsglcx
    请认真阅读您的文件包然后直到其具体功能(matlab在电气领域应用)(Please read them carefully and then your package until its specific function (matlab in the field of electrical applications))
    2009-05-14 20:05:18下载
    积分:1
  • embed
    说明:  基于几何特征的三维模型数字水印算法研究 水印嵌入代码(Three-dimensional model based on geometric features of watermarking digital watermarking algorithm embed code)
    2011-04-10 20:43:56下载
    积分:1
  • Communications-Toolbox-4.2
    通信系统工具箱 4.2 是通信系统仿真必备的工具 很全 分方便(Communications System Toolbox 4.2 is an essential tool for communication system simulation is the whole convenience )
    2021-03-21 10:09:17下载
    积分:1
  • xianxingyucefengxi
    语音信号分析处理实验,主要是线性预测分析的matlab代码(Speech signal analysis and processing experiments, mainly linear predictive analysis matlab code)
    2013-11-19 12:51:05下载
    积分:1
  • LDPCPBP
    在瑞利信道条件下采用差分调制,LDPC编码系统的BP译码算法的实现。(Differential modulation in Rayleigh channel conditions, achieve BP decoding algorithm for LDPC coding system.)
    2021-04-10 14:28:59下载
    积分:1
  • Matlab各种插值法.part6
    说明:  Matlab的 各种插值法..代码,Lagrange插值..Newton插值... Hermite插值... 分段低次插值... 三次样条插值 二维插值...(Various interpolation methods of MATLAB.)
    2020-06-23 22:00:02下载
    积分:1
  • Using_the_MATLAB_PDE_TOOLBOX
    详细讲解了matlab中PDE工具箱的应用,附有具体的例子并附图说明()
    2007-09-27 15:50:24下载
    积分:1
  • nibian
    此模块很好的展现了将直流电转换为交流电并实现单位功率控制。(this model can clearly display the directly current converting the alternating current by controling the input power facror )
    2014-09-16 09:51:58下载
    积分:1
  • Series-Forcast
    用于时间序列的预测,包含序列特征描述、平稳性检验、序列周期判断、季节因子提取、指数平滑预测、及ARIMA预测(Sequence features for time series prediction, including the description of the stationary test, to determine the sequence cycle, seasonal factor extraction, exponential smoothing, and ARIMA forecasting)
    2020-11-28 14:39:30下载
    积分:1
  • 字符型的matlab实现2进制转换,十分方便
    字符型的matlab实现2进制转换,十分方便-Matlab implementation of the 2 character hexadecimal conversion, which is very convenient
    2023-03-10 20:35:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载