PyShoal

Particle Swarm Optimisation implementation
Download

PyShoal Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Will Furnass

PyShoal Tags


PyShoal Description

PyShoal is an implementation of Particle Swarm Optimisation in Python.Typical usage:#!/usr/bin/env pythonfrom pso import PSOdef 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 = rastrigino = PSO(obj_func = obj_func, init_var_ranges = ((-500,500),(-500,500)), n_parts = 144, topo="gbest", weights=)res = o.opt(max_itr = 100, tol_thres = (0.01,0.01), tol_win = 5, plot = True, save_plots=False)Product's homepage


PyShoal Related Software