Clear Filters
Clear Filters

speeding up optimization problems with parallel computing

1 view (last 30 days)
when I run the optimization example of portfolioProblem (DemoGAwPCT.m), the ".m" file is taken from "Speeding Up Optimization Problems with Parallel Computing" downloaded from http://www.mathworks.com/matlabcentral/fileexchange/, I get the following error when he arrive to the part ("%% Run on 4 Cores"):
??? Error using ==> matlabpool at 122
'speedy-4core' is not a valid configuration name.
Use [conf, allConf] = defaultParallelConfig to see all your configurations.
%%Run on 4 Cores
files = dir;
files = {files(3:end).name};
matlabpool('open','speedy-4core',4,'FileDependencies',files)
tic;
[portSubStd, portSubRet, portSubWts, portSubIndx] = ...
computebestportfolioPCT(expRet,expCov,portSize,targetRet);
garuntime = toc;
% Report results
fprintf('GA Run Time is: %f seconds\n',garuntime);
matlabpool close
I have a computer with (Pentium® Dual-Core CPU T4500 @2.30GH 2.30GH). Is it for this reason I continue to get this error (I have a dual-core CPU, but I try to run the optimization problem on 4 core).

Answers (0)

Community Treasure Hunt

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

Start Hunting!