登录
首页 » matlab » youhua1

youhua1

于 2020-12-11 发布 文件大小:2KB
0 217
下载积分: 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 个回复

  • SR
    说明:  IBP matlab source code for super resolution application
    2010-06-09 14:50:27下载
    积分:1
  • SLALG
    Simple algorithm of wsn to localize mobile targets
    2015-02-05 17:13:03下载
    积分:1
  • ampp
    用于提取语音信号的能量谱的函数,ampp(s,a,b,c),x为输入信号,a,b,c用于指定subplot函数的作图位置(A function for extracting the energy spectrum of the speech signal, ampp (s, a, b, c), x is the input signal, a, b, c is used to specify the location of subplot mapping function)
    2015-04-22 13:44:47下载
    积分:1
  • gskmadechar
    基于matlab的图像检索,供大家学习参考。(Matlab-based image retrieval, for them to learn from the reference.)
    2009-05-12 11:12:46下载
    积分:1
  • ch1example3prg1
    用蒙特卡罗方法求半径为1的圆的面积,matlab实现(Monte Carlo)
    2009-12-06 20:56:17下载
    积分:1
  • trajectory_3Types
    Three different kinds of trajectory generators. including linear simple.Linear accelerated. and circular
    2013-01-14 18:58:20下载
    积分:1
  • lab1_simulink_dspbuilder
    LPC lab for student purdue
    2011-05-08 02:29:19下载
    积分:1
  • global-optimization-toolbox
    全局优化工具箱,详细说明优化工具箱的使用及注意事项(Global Optimization Toolbox, Optimization Toolbox with detailed instructions and precautions)
    2013-08-08 12:31:16下载
    积分:1
  • 指纹识别算法的Matlab实现
    说明:  自动化指纹识别,操作简便,代码运行快捷。(fingerprint identity)
    2021-03-18 14:19:20下载
    积分:1
  • hist2d
    2D Histrogram Two Dimention Histogram function
    2009-05-13 03:30:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载