I see. So assume I have equal number (n) of models and processes, and I want each process to take care of one model. Can I do something like
@sync for i in 1:n
@async result[i] = remotecall_fetch(solveModel, i, modelList[i])
end
where modelList is an array of n JuMP models.
In addition, what I need is that in each iteration of my algorithm, I need to implement the above code (in parallel) to resolve n models. But each process will always handle the same model. Is it necessary to build and store each model in a process (say with the same id), or is it find to create all models in the main process (with id 1)?
Thanks.