遗传算法MATLAB实现,1:工具箱下载及安装

到官网下载谢菲尔德大学的GA工具箱:http://codem.group.shef.ac.uk/index.php/ga-toolbox(其实蛮不懂为什么有人把这个传到某个网上还需要积分才能下载,人家开发者都是免费让下载的。。。)

安装方法抄自:http://www.cnblogs.com/zhengnanlee/p/3439649.html,感谢原作者。

安装方法

将整个文件夹复制到matlab安装文件夹中的toolbox文件夹

例如:C:\Program Files\MATLAB\R2013b\toolbox文件夹。

然后在Command Window里面输入:

str = [\'C:\Program Files\MATLAB\R2013b\toolbox\gatbx\']

addpath(str)

可能有些同学出现过这个问题,

Undefined function or method \'crtbp\' for input arguments of type \'double\'

或者是:

Cannot find an exact (case-sensitive) match for \'crtbp.m\'

The closest match is C:\Program Files\MATLAB\R2012a\toolbox\gatbx\CRTBP.M

To change the file extension, cd to the file\'s folder, type:

movefile CRTBP.M CRTBP.m_bad; movefile CRTBP.m_bad CRTBP.m

and then cd back.

这是因为新旧Matlab版本对于M文件的文件名要求不尽相同,将其全部改为小写文件名和文件后缀名即可。