登录
首页 » matlab » youhua1

youhua1

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

  • work
    计算平均灰度,进行信号检测的几个MATLAB小程序方法(Calculation of the average gray level, carried out a few MATLAB signal detection method of small programs)
    2010-01-21 10:51:26下载
    积分:1
  • online
    说明:  主成分分析算法,用于建立主成分分析模型,采用累计贡献率的方法(pca )
    2010-04-18 11:01:01下载
    积分:1
  • MATLAB6.0shuxueshouce
    介绍matlab6.0的矩阵及其基本运算,数值计算与数据分析,符号运算,概率统计,优化问题,绘图与图形处理等等。(Introduction matlab6.0 matrix and its basic operations, numerical and data analysis, symbolic computation, probability and statistics, optimization, graphics and graphics processing, and so on.)
    2011-07-04 21:24:22下载
    积分:1
  • Love_xin
    主要用于绘制图像、比如圆柱、矩形、圆、心等,该例子绘制了一颗被包围的红心,用于表达爱意。(Mainly used to draw the image, such as cylindrical, rectangular, round, heart, etc., which are surrounded by examples drawn a red heart for affection.)
    2013-09-22 09:43:12下载
    积分:1
  • QPSK
    QPSK bloque de modulación y demodulacion. Ademas posee un bloque de BER para observar la firencia entre la señ al de entrada y de salida
    2011-06-10 05:32:02下载
    积分:1
  • yzc1
    SVPWM Control AC motors
    2011-11-01 21:35:17下载
    积分:1
  • psoToolbox
    布谷鸟搜索算法,利用布谷鸟搜索觅食的特点对数据进行搜索优化。(Cuckoo search algorithm uses the characteristics of cuckoo search and foraging to search and optimize the data.)
    2019-02-18 16:41:17下载
    积分:1
  • PSO
    粒子群算法优化函数求解极值的问题。通过该程序我们可以看到粒子群优化算法的优化过程。(Particle Swarm Optimization for Solving Extremum problems. Through this program we can see that PSO optimization process.)
    2010-11-17 12:13:05下载
    积分:1
  • Edge-Detection
    Edge Detection Code in Simulink of Matlab
    2011-10-15 12:30:01下载
    积分:1
  • laba
    Identification of a muffle furnace
    2013-11-19 16:41:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载