-
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
-
HMM_Forward
根据隐马尔可夫模型,利用马尔可夫链前向算法,用于估值问题。(HMM-FORWARD )
- 2021-04-21 16:28:49下载
- 积分:1
-
3A-theory--subspaces
3理论抽样信号从一个联盟的子空间,理论抽样信号从一个联盟的子空间(3A theory for sampling signals from a union of subspaces)
- 2014-08-17 16:33:28下载
- 积分:1
-
McGraw.Hill.-.Numerical.Methods.Using.Matlab
e BOOK ON FACTS DEVICES
- 2013-07-26 12:41:05下载
- 积分:1
-
elastic-vibration
客观现实的另一类力学模型是弹性体(也称连续系统或分布参数系统),它的物理参数是分布型的,具有无限多个自由度,且运动规律由偏微分方程来确定(Another kind of objective reality mechanical model is elastomer (also called the continuous system or distributed parameter systems), its physical parameter is the distribution model, with an infinite multiple degrees of freedom, and movement rules by partial differential equations to determine
)
- 2012-07-29 12:41:32下载
- 积分:1
-
Energy_cognitive_radio
COGNITIVE RADIO_ENENRGY
- 2014-10-09 11:19:36下载
- 积分:1
-
CA_simulation
Cellular Learning Automata Simulation
- 2013-08-21 13:03:03下载
- 积分:1
-
koskeshaaa
calculate camera parametr
- 2016-12-20 19:54:10下载
- 积分:1
-
CS_OMP
说明: 是关于压缩感知磁共振成像的正交匹配追踪算法的具体实现,用于稀疏磁共振成像,可以进行仿真实验(The code is about the realization of compressed perceptual MRI. The running environment is matlab, which is a very classic code)
- 2020-03-26 20:22:58下载
- 积分:1
-
3dfdtd
3d-fdtd算法的遗传基因算法matlab模拟(3d-fdtd genetic algorithm matlab simulation algorithm)
- 2009-04-06 22:06:33下载
- 积分:1