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

1 回表示 (過去 30 日間)
Jason Shih
Jason Shih 2015 年 10 月 5 日
コメント済み: Jason Shih 2015 年 10 月 6 日
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 Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by