sahar ebrahimi
sahar ebrahimi

Reputation: 11

Error in parallel processing using ga linking external software

I want to run an optimization problem using ga and gamultiobj which is a link between OpenSees and Matlab; To have optimum run time, I want to use the optim option "UseParallel" in MATLAB. To avoid the replacement of folders on each other, a trick that I have done is to assign a very big number (1e9) as an index to the folders in the objective function loop...but unfortunately, still I got errors because I used "regexprep" several times in MATLAB to modify plenty of lines in my code in OpenSees and save them in a new (.tcl) file with a new ID. So when I use clustered workers for parallel processing, I get errors which for example no file with x name exists or something like that...Maybe I should write a code that updates the ID of the OpenSees files that I sourced in my code or produce new OpenSees files each iteration and delete them at the end of the loop to save free space. Can anyone help me with this issue?? I'm in a hurry for that! Thanks in advance, Sahar Ebrahimi

I tried to use the "UseParallel" option for an optimization problem but got several errors. I should mention that when I use a few workers, there is no error...as I increase the number of workers, these errors appear.

Upvotes: 0

Views: 59

Answers (0)

Related Questions