speeding up optimization problems with parallel computing
1 次查看(过去 30 天)
显示 更早的评论
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).
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Direct Search 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!