登录
首页 » matlab » youhua1

youhua1

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

  • FFT_TEST
    模拟数字信号进行matlab的FFT运算。对频谱进行对数谱和功率谱的转换。(Analog and digital signal matlab the FFT operation. The number of the spectrum of the spectrum and power spectrum of the conversion.)
    2011-06-29 16:09:37下载
    积分:1
  • Mastering-of-Matlab-8
    这是很popular的matlab 电子书 欢迎下载
    2014-12-31 14:45:33下载
    积分:1
  • Matlabexample
    This program is the analytical approach in composite design to determine the safety factors and strength components of a general multidirectional laminate based on the Tsai-Wu failure criterion and also on the first ply failure (FPF) approach by using MATLAB programming.
    2020-07-04 17:00:01下载
    积分:1
  • Dinamik-saze
    Matlab source codes for dynamics of structures numerical solution.
    2012-01-05 15:49:04下载
    积分:1
  • matttt
    more programs on matlab
    2012-11-30 03:03:36下载
    积分:1
  • D 生成泽尼克多项式的matlab代码
    拟合zernike多项式,这里给出了前35项的泽尼克像差。有需要的话可以继续添加像差。(Fitting zernike polynomial.The zernike aberrations of the first 35 terms are given here. Continue to add aberrations if necessary)
    2021-04-27 15:08:44下载
    积分:1
  • DSSS
    实现通信抗干扰的跳频通信,希望对初学通信抗干扰的同志有所帮助(To achieve interference rejection for frequency hopping communication, hope to comrades beginner help communication interference)
    2021-04-01 20:19:07下载
    积分:1
  • RealGA(TwoVaribles)
    此代码是实数编码遗传算法的Matlab例程。用了精英保留策略选择和轮盘赌选择法,叉操作采用中间重组方式。(This code is a real-coded genetic algorithm Matlab routines. Retention policies with the elite selection and roulette wheel selection method, fork operation mode using the middle of restructuring.)
    2020-06-28 21:20:01下载
    积分:1
  • Chen---Robust-PID-controller-autotuning-with-a-ph
    ROBUST PID CONTROLLER AUTOTUNING WITH A PHASE SHAPER
    2011-04-20 01:20:55下载
    积分:1
  • G_P
    说明:  g-p算法,分形理论。。。。。。。。。。。。。。。。。。(gp algorithm, fractal theory. . . . . . . . . . . . . . . . . .)
    2010-04-06 14:52:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载