Optim.jl icon indicating copy to clipboard operation
Optim.jl copied to clipboard

Non-Adaptive PSO

Open AlexvZyl opened this issue 2 years ago • 7 comments

I am currently using particle swarm on one of my problems and wanted to change the weights, but:

image

c1,c2 and w are not exposed, due adaptive PSO being implemented. Would it be possible to make these values static?

cc @ErichWiehahn

AlexvZyl avatar Jul 12 '22 15:07 AlexvZyl

what do you mean make them static? I can expose them, yes

pkofod avatar Jul 26 '22 19:07 pkofod

Notice, that I do allow for this already over in NLSolvers.jl https://github.com/JuliaNLSolvers/NLSolvers.jl/blob/7ce1e0c7ef1c76f84098e6c392a589f13c2f4869/src/optimize/randomsearch/particleswarm.jl

pkofod avatar Aug 04 '22 13:08 pkofod

I actually see that the initial weight parameter is not exposed. I will do so.

pkofod avatar Aug 04 '22 13:08 pkofod

Exposing them would be nice, yes!

I was asking if it was possible to make the weights parameters fixed. My problem invovled an extremely non-linear space and I wanted to play around with the weight parameters to see if I can yield better results.

I am unsure if that would be trivial to add or if it would require a whole different algorithm. If it is not that trivial I would understand you not wanting to add it.

AlexvZyl avatar Aug 05 '22 09:08 AlexvZyl

Ah, so you mean a "non-adaptive" version of PSO?

pkofod avatar Sep 03 '22 11:09 pkofod

Yes, that is what I meant.

AlexvZyl avatar Sep 03 '22 14:09 AlexvZyl

Yes, that is what I meant.

That should be possible.

pkofod avatar Sep 05 '22 14:09 pkofod