7 variable in genetic algorithms
1 次查看(过去 30 天)
显示 更早的评论
Hi i am working with genetic algorithms toll box in m file with 7 variable ,
options=gaoptimset('InitialPopulation',x0);
[x,fval]= ga(FitnessFunction,7,[],[],[],[],lb,ub,[],options);
i have a problems it gives me error below i dont know why , can any one help me
thank you
Error in createAnonymousFcn>@(x)fcn(x,FcnArgs{:}) (line 11)
fcn_handle = @(x) fcn(x,FcnArgs{:});
Error in fcnvectorizer (line 13)
y(i,:) = feval(fun,(pop(i,:)));
Error in stepGA (line 44)
nextScore = fcnvectorizer(nextPopulation,FitnessFcn,1,options.SerialUserFcn);
Error in galincon (line 62)
[score,population,state] =
stepGA(score,population,options,state,GenomeLength,FitnessFcn);
Error in ga (line 359)
[x,fval,exitFlag,output,population,scores] = galincon(FitnessFcn,nvars, ...
5 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!