登录
首页 » matlab » youhua1

youhua1

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

代码说明:

  遗传算法的电机优化程序,个人专门编写的,对于初学者来说,可以借鉴(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可以控制输出格式 待优化问题)

文件列表:

youhua1.m,4120,2013-05-10

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

发表评论

0 个回复

  • OFDM_Signal
    说明:  用于生成正交频分复用OFDM信号的Matlab仿真程序代码全面(Matlab simulation code for OFDM signals)
    2010-05-04 21:17:10下载
    积分:1
  • st
    说明:  C语言源代码,用于计算S变换,进行时频分析(S transform C language source code)
    2015-03-30 15:52:35下载
    积分:1
  • Cjibupingdu
    三角级数法模拟路面不平度的MATLAB命令流(The simulation method of Road roughness)
    2021-04-25 18:08:46下载
    积分:1
  • serialComm
    主要是串口数据的收发! 写了一个GUI界面,包括一些常用的控件,文件的读写,出错的简单处理,弹出对话框等 可能还有一些错误,欢迎拍砖! 调试在matlab7.0.4上通过!(Mainly to send and receive serial data! Wrote a GUI interface, including some commonly used control, file read and write, a simple error handling, pop-up dialog boxes, etc. There may be some mistakes, please Paizhuan! Debugging in matlab7.0.4 adopted!)
    2010-05-22 21:38:29下载
    积分:1
  • ond
    DCAC converter that convert DC to AC current with an PWM controle technique
    2010-07-18 18:29:37下载
    积分:1
  • GUI_2
    matlab初学者资料 里面有M程序的详细文件 还有编程 直接运行即可(Matlab beginners material inside have M program detailed document and programming can be run directly )
    2012-03-30 11:20:47下载
    积分:1
  • bcjr_decoder
    This is a simulation matlab for simulating the process of BCJR decoder that decodes input data s from channel.
    2011-07-08 18:03:26下载
    积分:1
  • DrawGateFunctionSpectrum
    利用matlab来进行画门函数的频谱图和能量谱密度图(Use matlab to draw gate function spectrum and energy spectrum density map)
    2016-10-07 12:17:19下载
    积分:1
  • spline3
    三次样条插值,很不错的插值算法,值得参考(Cubic spline interpolation, the interpolation algorithm is pretty good, it is also useful)
    2021-01-19 18:08:42下载
    积分:1
  • suiqianying
    传输矩阵法matlab仿真透射波长,介质的折射率和反射率、(Transfer matrix method matlab simulation transmission wavelength, refractive index and reflectivity,)
    2011-09-08 20:32:43下载
    积分:1
  • 696516资源总数
  • 106913会员总数
  • 8今日下载