登录
首页 » matlab » youhua1

youhua1

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

  • zishiyingbianshi
    说明:  MATLAB自适应辨识函数,相对比较简单,初学者很有用(Adaptive Identification MATLAB function is relatively simple, useful for beginners)
    2008-11-24 17:51:01下载
    积分:1
  • root-locus_from_scratch_Matlab
    Root-locus method teaching from scratch in matlab.
    2014-02-07 07:29:50下载
    积分:1
  • OFDM_cyclic_spectrum
    说明:  % 仿真主要完成OFDM系统建模,实现OFDM系统传输流程, % 并对OFDM信号的时域波形及功率普密度进行分析.进行循环谱相关切片的分析。( Simulation of the main complete OFDM system modeling, the realization of OFDM transmission system process, of the OFDM signal in time domain waveforms and power density analysis of Pu. To carry out the cycle slice spectral correlation analysis.)
    2008-10-18 22:21:18下载
    积分:1
  • Lecture10II
    Source code in matlab of neural network.
    2010-05-30 02:24:42下载
    积分:1
  • ransac_homography
    RANSAC Use RANdom SAmple Consensus to fit a line
    2014-10-23 15:20:33下载
    积分:1
  • zoom_problem
    一篇基于PDE方法的zooming算法的论文及其matlab实现。(An algorithm based on the PDE zoom papers and Matlab.)
    2013-04-24 22:04:57下载
    积分:1
  • Matlab-image-process
    应用matlab 对图像进行灰度加强处理,相当不错!!!!!(image process)
    2014-03-02 16:46:27下载
    积分:1
  • tanhuangzhenzi
    不错的源代码,喜欢matlab实验的朋友可以下载下来看看:) --模拟弹簧振子(Good source code, like matlab experiment to see if a friend can download it:) Simulation of Spring Oscillator)
    2008-07-01 18:52:24下载
    积分:1
  • KalmanFilter__matlab
    Kalman滤波原理及源码matlab!适合初学的童鞋没,与大家一起分享(Kalman filter theory and source code matlab! Share with you)
    2011-09-14 19:57:19下载
    积分:1
  • Matlabhelp
    matlab的详细说明手册,对初学者很有帮助的。(matlab detailed instruction manual, useful for beginners.)
    2008-12-17 22:21:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载