-
Notifications
You must be signed in to change notification settings - Fork 234
Parallel ParticleSwarm #1125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Parallel ParticleSwarm #1125
Conversation
Btw, I forgot to mention. The commits also contain a change which allows some upper bounds to be equal to the lower bounds. This can be used as a simple way to keep some variables constant. |
I see, yes I also implemented something similar in NLSolvers.jl. Let me review it. Thanks |
The test failures seem to be unrelated. I came to think of it, should the new |
Change keyword in ParticleSwarm to "batched". Remove an unused argument
Benchmark Results
Benchmark PlotsA plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. |
I'll look at this later today, it had slipped out of my attention. |
#1124
This PR enhances
ParticleSwarm
with a new keywordparallel::Bool = false
. If set totrue
, the objective function will be called with a vector to fill in, and a matrix of column vectors as inputs. Thus, the user may choose to evaluate the swarm in parallel with whatever means.