Skip to content

A Particle swarm optimization (PSO) implementation in C++17 with constrtaint and objective in one function

License

Notifications You must be signed in to change notification settings

AminGholizad/PSO-CPP17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Particle swarm optimization (PSO)

Particle swarm optimization algorithm (PSO) for a minimization problem. In this project, nonlinear constraints are implemented as infeasible solutions. This project is implemented in C++17. Constraints and objective in one function.

Features

  1. Template class for particles with number of variables as the template parameter is used to initialize the arrays of the needed size.
  2. Template function for pso with number of variables and swarm size is as the template parameters is used to initialize arrays accordingly
  3. The cost function should accept one array as input and output a pair of doubles representing cost and constraint of the problem respectively.
  4. The Mutation is used to avoid local minima.

todo

[] More explanation of the functionality

About

A Particle swarm optimization (PSO) implementation in C++17 with constrtaint and objective in one function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages