MATLAB Answers

Invalid MEX-file error

1 view (last 30 days)
Buse Ebrem Bilgin
Buse Ebrem Bilgin on 7 Oct 2019
Answered: Chidvi Modala on 10 Oct 2019
I'm trying to use Genetic Algorithm in a parallel way with an external software (Lumerical FDTD solver). I checked the blog, and updated my code; you can see it below:
spmd // I include this part according to the previous answers about the same topic
mkdir(sprintf('worker%d', labindex));
copyfile('3D_sym.fsp',sprintf('worker%d/',labindex)); // my sim. file
cd(sprintf('worker%d', labindex));
funcao = @(ch) symmetric_3d(ch);
options = optimoptions('ga','MaxGenerations',20,'PopulationType','bitstring','PopulationSize',10,'UseParallel',true); % sets PARALLEL
LB = [];
UB = [];
ch = ga(funcao,9,[],[],[],[],LB,UB,[],options);
%Objective function
function y = symmetric_3d(ch)
path(path,'C:\Program Files\Lumerical\FDTD\api\matlab');
sim_file_path=('C:\Users\Buse\Documents\LumericalMatlab\Paper sim\4-fold symmetry'); % update this path to user's folder
h=appopen('fdtd'); // This is where I am taking the error
After the workers start to work, I'm taking the error of
Invalid MEX-file
Missing dependent shared libraries:
matlab-interop.dll’ required by
I couldn't file anything about this ddl file. How can I fix this error?


Sign in to comment.

Answers (1)

Sign in to answer this question.