Skip to main content

A fast implementation of Particle Swarm Optimization using PyTorch

Project description

Torchswarm

A fast implementation of Particle Swarm Optimization using PyTorch

We support

Variants of Particle Swarm Optimization

We support for all kinds of PSO

Bring your own particle

We allow for getting a custom particle with a different velocity update rule, The Class must have the following methods:

  • __init__
  • move
  • update_velocity

How to define your problem.

Create a class by inheriting torchswarm.functions.Function and an evaluate method.

class XSquare(Function):
    def evaluate(self, x):
        return x**2

Contributors:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

torchswarm-0.0.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page