-
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
-
3
说明: Adaptive Watermarking
- 2014-10-09 12:37:07下载
- 积分:1
-
code
分别利用 Lagrange插值法、分段线性插值法与三次样条法进行插值逼近(Respectively, by Lagrange interpolation, piecewise linear interpolation and cubic spline interpolation approximation method)
- 2013-12-15 20:18:28下载
- 积分:1
-
New folder (3)
说明: looking the nearest distance
- 2020-06-20 02:00:02下载
- 积分:1
-
Project2LPF
Create a 512-length signal then low-pass filter the signal with the filter
- 2009-04-11 12:02:34下载
- 积分:1
-
gall
using gall function for measure the algorithm
- 2009-12-14 16:58:50下载
- 积分:1
-
755
一些关于数据车牌识别的资料,对你进行车牌的识别程序设计有用(Some information about the data license plate recognition, license plate recognition program is useful for the design)
- 2013-03-05 22:00:16下载
- 积分:1
-
Exercise4
程序实现设计一单一感知器神经元以及采用神经网络拟合奇异函数。压缩包中还包含相关的参考资料。(Design a program to achieve a single sensor neurons and neural networks fitting singular function. Compressed package also contains the associated reference materials.)
- 2013-09-06 08:34:41下载
- 积分:1
-
利用西储数据,进行滚动轴承的诊断,提取故障特征
说明: 利用西储数据,进行滚动轴承的诊断,提取故障特征。(The rolling bearing is diagnosed and the fault features are extracted by using the data of Western storage.)
- 2020-07-09 11:24:42下载
- 积分:1
-
22w3323
说明: 基于matlab的蚁群算法程序代码---自寻优(Ant colony algorithm based on matlab code--- self-optimizing)
- 2011-03-14 18:43:48下载
- 积分:1