登录
首页 » matlab » youhua1

youhua1

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

  • VCandMatlab
    许多工程软件需要用到复杂的数学算法。VC++能够形成各种用户界面, 并可以直接与系统及底层硬件交换数据。因此研究VC++和Matlab 的混合编程具有很大的实际意义。该文讨论了如何使用Matlab 的Complier 将*.m函数编译为动态链接库DLL, 提供给VC++调用的方法, 提供了一种VC++与Matlab 混合编程的快速实现。(Many engineering software need to use complex mathematical algorithms. VC++ can form a variety of user interface, and can directly exchange data systems and the underlying hardware. Therefore, VC++ and Matlab of mixed programming of great practical significance. The article discusses how to use Matlab' s Complier to*. m functions compiled as dynamic link library DLL, VC++ provided to the invoked method, provides a mixed VC++ and Matlab programming fast implementation.)
    2010-06-06 15:59:47下载
    积分:1
  • pso
    a generic particle swarm optimizer
    2010-08-31 13:30:54下载
    积分:1
  • gui17
    matlab中gui的学习方法讲解,主要是建立按钮,按钮功能等方法(MATLAB gui SUTDY)
    2015-01-04 20:12:20下载
    积分:1
  • differentialequations
    关于Matlab中常微分方程的数值解法以及其Matlab实验的源代码(Numerical solution of differential equations)
    2010-06-23 10:41:07下载
    积分:1
  • cross-corr
    Cross-correlation of several signals
    2009-05-25 22:31:56下载
    积分:1
  • Mathmatlab
    应用matlab对负责数学模型分析求解方法解析(Application the matlab responsible mathematical model analysis method for solving resolution)
    2013-01-21 00:19:29下载
    积分:1
  • mohu
    利用模糊控制,实现机器人避碰的程序,实验效果良好(The use of fuzzy control, robot collision avoidance procedures, test results good)
    2014-11-04 08:56:11下载
    积分:1
  • m_sequence
    该程序可以利用matlab仿真工具产生m序列 可以应用于通信中扩频仿真等的使用(This function can generate m sequence)
    2012-02-15 08:57:02下载
    积分:1
  • PF_3
    一个粒子滤波的程序,包含了三种采样策略,可以根据自己的需要选择采样策略。(a particle filter process, contains three sampling strategy, according to their own needs select sampling strategy.)
    2007-06-21 10:03:31下载
    积分:1
  • dxqqpwm-PWM-.mdl
    单相全桥PWM整流模型,多次验证表明,该模型动态响应快,静态误差小,完全符合要求。(The single-phase full bridge PWM rectifier model, verified the model many times, fast dynamic response, static error is small, fully meet the requirements.)
    2013-12-31 16:59:15下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载