- Are you calling parpool or batch to run your code?
- Are you running MATLAB on the machine that's going to run the parallel code? That is, are you running MATLAB on the machine that already has /home/user/workidir mounted on it? Or are you running MATLAB on a different machine?
Parallel Computing in Optimization Toolbox
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to use the GA toolbox for optimization but with the parallel option ('UseParallel', true).
options = optimoptions(@ga,'Display', 'iter', ...
'OutputFcn',@GA_OUTPUT ,...
'PlotFcn', {@gaplotbestf, @PLOT_FUNCTION},...
'MaxGenerations', 60, ...
'PopulationSize', POPULATION_SIZE, ...
'FunctionTolerance',1e-6, ...
'CrossoverFraction', 0.95, ...
'EliteCount', 0.1*30,...
'UseParallel', true) ;
[x,fval,exitflag,output,population,scores] = ...
ga(@OBJECTIVE_FUNCTION,nvars,A,b,Aeq,beq,lb,ub,@POWER_CONSTRAINT,IntCon,options) ;
My question is how can I attach my working directory (/home/user/workidir) with the files to be used by the algorithm in each Worker.
Thanks.
댓글 수: 3
Matt J
2022년 4월 18일
Yi Zhao's comment moved here:
Hello,
Whether your problem has been solved,and whether the solution can be shared.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!