-
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
-
aco_tsp
ant colony for TSP problem
- 2012-02-03 19:02:35下载
- 积分:1
-
adptive-cannny
结合canny算子的自适应阈值分割和边缘提取算法,matlab(Combined with canny operator prepared adaptive threshold segmentation edge extraction algorithm, matlab)
- 2016-11-15 10:18:36下载
- 积分:1
-
MATLAB.GUI1
MATLAB.GUI教学视频1:简单的文本框数据传递(MATLAB.GUI instructional videos: simple text box data transfer)
- 2013-05-11 19:51:33下载
- 积分:1
-
1
说明: 人工免疫系统,利用MATLAB实现,matlab工具箱实用手册
(Artificial immune system, using MATLAB realize, matlab toolbox A Practical Handbook)
- 2008-07-24 11:58:15下载
- 积分:1
-
Pic2Avi
说明: 用MatLab将众多图片文件自动生成avi电影文件(Make a avi file from many picture file using Matlab program)
- 2009-08-15 15:18:16下载
- 积分:1
-
powersystem
三机九节点电力系统牛顿法潮流计算与短路计算算例编程(Three machine nine-bus power system, Newton' s method flow calculation and short circuit calculation example programming)
- 2012-05-26 22:17:45下载
- 积分:1
-
二自由度碰撞系统龙格库塔数值求解
说明: 二自由度碰撞系统龙格库塔数值求解方法算例程序(Numerical solution of Runge Kutta for two degree of freedom collision system)
- 2020-01-17 10:35:12下载
- 积分:1
-
Stator_flux_optimised_Direct_Torque_Control_system
说明: 一种适用于感应电机的定子磁链优化的直接转矩控制技术。(One for induction motor stator flux-optimized direct torque control technique.)
- 2008-10-26 09:52:38下载
- 积分:1
-
DSP
说明: 前辈门的报告和自己的程序,吴镇扬老师的那本DSP上所有的实验matlab源码和问答题目的解答(The report and its predecessors door procedure, Zhen-Yang Wu teachers that all the experiments the DSP matlab source code and answers to quiz questions)
- 2010-04-15 22:39:03下载
- 积分:1