Skip to main content

PyShoal

PyShoal is an implementation of <Particle Swarm Optimisation> in Python.

Typical usage:

#!/usr/bin/env python
from pso import PSO

def rastrigin(a,b):
    return 0- (10 * 2 + \
           (a**2 - (10 * np.cos(2 * np.pi * a))) + \
           (b**2 - (10 * np.cos(2 * np.pi * b))))

obj_func = rastrigin
o = PSO(obj_func = obj_func,
        init_var_ranges = ((-500,500),(-500,500)),
        n_parts = 144,
        topo="gbest",
        weights=[0.9, 0.4, 1.0, 2.5])
res = o.opt(max_itr = 100,
            tol_thres = (0.01,0.01),
            tol_win = 5,
            plot = True,
            save_plots=False)

Release files for PyShoal 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyShoal 0.1.0
File Size Uploaded
PyShoal-0.1.0.tar.gz 18.3 kB Details

Release files / PyShoal-0.1.0.tar.gz

Download URL PyShoal-0.1.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f9a8a084dd11d87e4eb60fa15691aa1e2333079f746b71444782cbad5f8d3b8c
BLAKE2b-256 checksum
How to use checksums
81c7f052d735534d0c1902e8366ccbf83f7ea181f82ac32b4c987d752c60f3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page