数学建模社区-数学中国
标题:
遗传算法交叉函数的疑问
[打印本页]
作者:
gyf3266296
时间:
2012-5-5 15:04
标题:
遗传算法交叉函数的疑问
前些天在网上下了个遗传算法的源代码,研究了好久还是有问题。
function [c1,c2] = pmxIndexXover(p1,p2,bounds,Ops)
%there is an PMX xover
pm=Ops(2);%pm应该就是代表交叉概率
可是每次调用 pmxIndexXover函数,matlab总返回 Error: File: F:\matlab\work\pmxIndexXover.m Line: 3 Column: 7
Missing variable or function.
这个应该是和“主函数”中的[c1 c2] = feval(xN,endPop(a,
,endPop(b,
,bounds,[xOverOps(i,
]);对应的,可是具体的对应关系不明白,而且交叉概率的确定也不理解,貌似跟一个默认矩阵有关?
求各位大神指点啊
作者:
gyf3266296
时间:
2012-5-5 15:05
里面的笑脸是: )……
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5