-
youhua1
遗传算法的电机优化程序,个人专门编写的,对于初学者来说,可以借鉴(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可以控制输出格式
待优化问题)
- 2020-12-11 20:19:19下载
- 积分:1
-
AHP
层次分析法的程序代码,不错的一段代码,希望能喜欢(AHP program code, a good piece of code, hoping to enjoy)
- 2010-03-14 18:56:58下载
- 积分:1
-
9812834109
MATLAB DATAMINING COURSE CODE
- 2010-09-17 16:32:07下载
- 积分:1
-
Transmission
简单模拟了bpsk的编解码,以及在高斯信道传输的后的译码和误码率的分析。另附功率谱。(Simple simulated bpsk codec, and the transmission of Gaussian channel bit error rate after decoding and analysis. Attached power spectrum.)
- 2009-11-13 10:29:09下载
- 积分:1
-
mianyikelusuanfa
说明: 免疫克隆算法优化函数的程序,保证可以用。。(Immune clonal algorithm to optimize the function of the program can be used to ensure)
- 2011-03-16 16:26:47下载
- 积分:1
-
lms
LMS滤波器示例程序,在TURBOC中运行可图形显示的C程序(lms filet test demo)
- 2015-04-02 10:21:56下载
- 积分:1
-
basic-of-matlab7
matlab7的学习资料,清华出的书,一本很基础的资料,特别适合初学者(matlab7 learning materials, the university out of the book, a very basic information, especially for beginners)
- 2011-07-06 13:25:30下载
- 积分:1
-
main1
数学建模中模拟卫星轨道的matlab源程序,由仿真数据模拟卫星轨道方程中的参数,得到轨道方程。(Matlab source, by mathematical modeling to simulate the satellite orbit parameters in the simulation data analog satellite orbit equation, the orbital equation.)
- 2013-01-18 15:40:49下载
- 积分:1
-
matlab2012_vs2005
解决新版本MATLAB与VC++混合编程问题。经过验证能够使用(Solve the problem of the new version MATLAB and VC++ for hybrid programming. Proven ability to use)
- 2012-07-23 08:31:43下载
- 积分:1
-
MATLAB
简易实现车牌识别,有GUI界面。车牌识别系统将获取的车辆图像进行一系列的处理后,以字符的形式输出结果(Simple license plate recognition with GUI interface.The license plate recognition system processes the acquired vehicle image in a series of ways and outputs the results in the form of characters.)
- 2020-07-04 09:40:01下载
- 积分:1