Thank you very much for leaving the comments.
Ultimately, I truncated my codes into pieces and examined which part was causing the endless computation.
-
Parameters package does work with Distributed. You were entirely correct.
-
Essentially, I was using a Nelder Mead multi-start algorithm to minimize a loss function with respect to a solution of NLsolve. I solve a system of non-linear equations that takes around 5 seconds for each parameter combination.
-
I fixed 7 parameters and left only one parameter to be chosen, and I imposed a very tight lower and upper bound. However, the minimization never ends.
I’m trying to figure out how to solve this part. I agree with your point, but I’m reluctant to write down the codes to replace a package I currently use.