How to use the Genetic Algorithm with the Parallel Computing Toolbox MATLAB2014b

1 次查看(过去 30 天)
I usually used MATLAB2009b,but now I want to use the Genetic Algorithm with the Parallel Computing Toolbox of MATLAB2014b.There are too much changes between these,so I want to know how to use the toolbox now.
  4 个评论
Edric Ellis
Edric Ellis 2015-10-6
What problem do you encounter in R2014b? I get an "unknown function" for distributionpopulation. Is it the batch command you're having trouble with? You appear to be calling it with a function as the first argument, which means that the second argument should be the number of output arguments requested. The 'Configuration' parameter should be 'Profile', and the 'FileDependencies' should be 'AttachedFiles' - perhaps that might help.
Jason Shih
Jason Shih 2015-10-6
I have fixed the problem you mentioned, but the error remains.
My aim is to use GA in several cores by Genetic Algorithm with the Parallell Computing Toolbox of R2014b.
The attached file is distributionpopulation.m which I used in Genetic Algorithm with the Parallel Computing Toolbox of R2009b(the distributionpopulation.m is one of the Built-in files in gads toolbox of R2009b ). You can check it. It worked well until I update my MATLAB to R2014b. The error message is that the parameters in all dimentions should be greater than zero and it prompts that
"Failiure in initial user-supplied fitness function evaluation and GA can not continue."

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by