You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reference: #111
This commit adds a backend module consisting of various abstractions
to common PSO operations. There are two files for this:
- generators: for generating swarm positions, velocities, etc.
- operators: for various swarm operations (update velocity, etc.)
As of now, one gripe I have with my current implementation is that
it consists of methods with a lot of parameters (it doesn't look
pleasing or concise). My idea is to add a Swarm class that contains
the position, velocity, c1, c2, w, etc. And just put them inside
the optimizer. We'll see how it goes
Signed-off-by: ljvmiranda921 <lester.miranda@obf.ateneo.edu>
I think it's better to decompose some methods in the swarm loop into its own backend module.
Makes it easier for us to test what's happening inside.
Deps: #101
Port all tests to pytest first before doing this.
The text was updated successfully, but these errors were encountered: