Clear Filters
Clear Filters

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

1 view (last 30 days)
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 Comments
Edric Ellis
Edric Ellis on 6 Oct 2015
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 on 6 Oct 2015
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."

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!