Hello everyone,
the overall structure of my code is here:
spmd
for
fun=@(x) norm(x-u)
fmincon
end
end
when the fun is in the spmd block, I face the error of anonymous funtion that says I can not define the function into the spmd.
if the dunction goes out of the spmd, there is no more access to the workers data (calculated "u" in the example).
can anyone say how can handle this problem?
0 Comments
Sign in to comment.