文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 高等教育 > 工学 > 遗传算法matlab源程序
侵权投诉

遗传算法matlab源程序

遗传算法matlab源程序外加习题。

问题:求f(x) |x|^(1/2)*sin(4 x)在[-2,2]之间的最小值。 Pc=0.7 Pm=0.3 L=20.

原始程序:

function

[Bestvalue,Bestmember]=Genetic(gen,min,max,fitnessfunction,crossrate,mutationrate,membernumber,memberlength) gen=input('Please input the value of gen:');

min=input('Please input the value of min:');

max=input('Please input the value of max:');

crossrate=input('Please input the value of crossrate:');

mutationrate=input('Please input the value of mutationrate:'); membernumber=input('Please

membernumber:');

memberlength=input('Please input the value of memberlength:'); population=populationinitialize1(membernumber,memberlength);

mmm=population;

global count;

count=1;

populationcode=population;

%populationdata=populationdata1(populationcode,min,max); populationdata=zeros(size(populationcode,1),1); input the value of

第1页

你可能喜欢

  • 遗传算法matlab代码
  • 遗传算法应用实例
  • 算法入门
  • matlab遗传算法实例
  • 算法代码
  • 粒子群算法matlab程序
  • 遗传算法解决TSP问题
  • 优化问题

热门文档

相关文档

  • 遗传算法matlab实现源程序

    遗传算法matlab实现源程序_自然科学_专业资料。遗传算法matlab实现源程序clc; clear; %各份订单基本数据 phen=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 41...

  • 遗传算法Matlab源代码

    遗传算法Matlab源代码_IT/计算机_专业资料。完整可以运行的数值优化遗传算法源代码function [X,MaxFval,BestPop,Trace]=fga(FUN,bounds,MaxEranum,PopSize,options,...

  • matlab遗传算法程序

    matlab遗传算法程序_IT/计算机_专业资料。介绍详细% 下面举例说明遗传算法 % % 求下列函数的最大值 % % f(x)=10*sin(5x)+7*cos(4x) x∈[0,10] % ...

  • 遗传算法matlab程序实例

    遗传算法matlab程序实例_电力/水利_工程科技_专业资料。软件 程序遗传算法程序(一): 说明: fga.m 为遗传算法的主程序; 采用二进制 Gray 编码,采用基于轮盘赌法...

  • 三个遗传算法matlab程序实例

    三个遗传算法matlab程序实例_IT/计算机_专业资料。遗传算法 matlab pid参数优化 自动控制理论遗传算法程序(一): 说明: fga.m 为遗传算法的主程序; 采用二进制 ...

  • 二参数遗传算法MATLAB源程序

    二参数遗传算法MATLAB源程序_计算机软件及应用_IT/计算机_专业资料。用遗传算法求函数f(x1,x2)=100(x1^2-x2)^2+(1-x1)^2的最大值,-2.048<=x1,x...

  • 遗传算法matlab程序实例

    遗传算法程序(一): 说明: fga.m 为遗传算法的主程序; 采用二进制 Gray 编码,采用基于轮盘赌法的非线性排 名选择, 均匀交叉,变异操作,而且还引入了倒位操作!...

  • matlab遗传算法源程序

    matlab遗传算法源程序_自然科学_专业资料。matlab遗传算法源程序%初始值程序 cs.m bound=[-3.0 12.1;4.1 5.8]; L=bound(:,2)-bound(:,1); R=L*...

  • 遗传算法的MATLAB程序实例

    遗传算法的MATLAB程序实例_IT/计算机_专业资料。遗传算法遗传算法的程序实例 如求下列函数的最大值 f(x)=10*sin(5x)+7*cos(4x) 一、初始化(编码) initpop...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email