egi-megi / porr-pso

2 stars 0 forks source link

Initialization of velocities vector #14

Open mpiku opened 3 years ago

mpiku commented 3 years ago

I wonder if there is already some research on proper velocities initialization. I see @egi-megi did a great job finding suitable weights (in function of vectorDim), which show to work well. It is as follows: the higher the dimension of task is, the smaller initial velocities we have.

https://github.com/egi-megi/rojCzastek_Szczepanski_Jurkiewicz_Pikulinski/blob/3acb2a2584b4aeb195e535c23d729c1607bbc1a2/src/SwarmParticle.cpp#L32-L41