登录
首页 » matlab » youhua1

youhua1

于 2020-12-11 发布 文件大小:2KB
0 215
下载积分: 1 下载次数: 41

代码说明:

  遗传算法的电机优化程序,个人专门编写的,对于初学者来说,可以借鉴(function youhua1() 遗传算法 n-- 种群规模 ger-- 迭代次数 pc--- 交叉概率 pm-- 变异概率 v-- 初始种群(规模为n) f-- 目标函数值 fit-- 适应度向量 vx-- 最优适应度值向量 vmfit-- 平均适应度值向量 clear all close all clc 清屏 tic 计时器开始计时 n=20 ger=100 pc=0.9 pm=0.1 初始化参数 生成初始种群 v=init_population(n,44) 得到初始种群,22串长,生成20*22的0-1矩阵 [N,L]=size(v) 得到初始规模行,列 disp(sprintf( Number of generations: d ,ger)) disp(sprintf( Population size: d ,N)) disp(sprintf( Crossover probability: .3f ,pc)) disp(sprintf( Mutation probability: .3f ,pm)) sprintf可以控制输出格式 待优化问题)

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

发表评论

0 个回复

  • shumo2010_ab_qiujie
    10年数模赛题alpha、beta角求法,利用最小二乘法求解(10 model years of the contest problems alpha, beta angle Method, using the least squares method)
    2010-10-03 17:06:44下载
    积分:1
  • dct
    it is the matlab code for rayleigh fading
    2011-06-29 16:59:30下载
    积分:1
  • DH5956
    实现机械故障在线检测, 实时控制,叶片裂纹的检测控制与报警。使得企业或者使用人员很方便的观测机械的故障并及时修正。(Mechanical fault diagnosis system)
    2013-12-30 18:38:19下载
    积分:1
  • C_Diffraction
    圆孔衍射的matlab模拟,产生动态图像,直观生动(matlab simulation of circular diffraction)
    2010-12-25 10:36:15下载
    积分:1
  • walsh_pn_code
    说明:  walsh和pn码的生成程序,用C语言实现,可供MATLAB调用(code generation process, using C language, calling for MATLAB)
    2006-04-22 15:31:14下载
    积分:1
  • yuvpsnr
    PSNR of YUV videos - matlab(PSNR of YUV videos-Matlab)
    2006-10-15 10:59:28下载
    积分:1
  • speccorrect
    在FFT后信号的频率往往与谱线不相重合,而在两条谱线之间。为了要求得信号的频率、幅值和初始相角,必须要使用修正法来完成。这里给出一种修正法。(After the signal in the FFT frequency spectrum often do not coincide, and in between the two lines. Request for a signal frequency, amplitude and initial phase angle, we must use to complete the Amendment Act. Here are a Amendment Act.)
    2008-02-18 18:13:38下载
    积分:1
  • wt8871
    wt8871的源代码,应用于车载仪器仪表或卫星导航等方面(wt8871 for application TV、GPS&outmeetor)
    2010-02-19 18:42:16下载
    积分:1
  • zuobiaoxizhuanhuan
    GPS中ECEFLLWECI等坐标系的转换,为matlab程序,已打包(GPS ecef,eci,llw...)
    2012-03-27 19:23:59下载
    积分:1
  • Enhanced-image-contrast
    在matlab中采用灰度变换的方法增强图像的对比度(In matlab using gray transform method to enhance the contrast of images)
    2014-12-11 13:32:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载