Particle swarm optimization

From WikiMD's medical encyclopedia

ParticleSwarmArrowsAnimation
PSO_Meta-Fitness_Landscape_(12_benchmark_problems)

Optimization algorithm



Particle Swarm Optimization (PSO) is a computational method that optimizes a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality. PSO optimizes a problem by having a population of candidate solutions, here dubbed particles, and moving these particles around in the search-space according to simple mathematical formulae over the particle's position and velocity. Each particle's movement is influenced by its local best known position, but is also guided toward the best known positions in the search-space, which are updated as better positions are found by other particles. This is expected to move the swarm toward the best solutions.

History

PSO was introduced by James Kennedy and Russell Eberhart in 1995. The algorithm was inspired by the social behavior of birds flocking or fish schooling.

Algorithm

The PSO algorithm initializes a group of particles (solutions) and then iteratively moves these particles around the search-space. Each particle adjusts its position based on its own experience and the experience of neighboring particles, making use of the best position encountered by itself and its neighbors.

Initialization

Each particle is initialized with a random position and velocity. The particles are then evaluated using a fitness function that measures the quality of the solution.

Update Rules

The velocity and position of each particle are updated using the following equations:

  • Velocity update:
\[ v_{i}(t+1) = w \cdot v_{i}(t) + c_1 \cdot r_1 \cdot (p_{i} - x_{i}(t)) + c_2 \cdot r_2 \cdot (g - x_{i}(t)) \]
  • Position update:
\[ x_{i}(t+1) = x_{i}(t) + v_{i}(t+1) \]

Where:

  • \( v_{i}(t) \) is the velocity of particle \( i \) at time \( t \)
  • \( x_{i}(t) \) is the position of particle \( i \) at time \( t \)
  • \( p_{i} \) is the best known position of particle \( i \)
  • \( g \) is the global best known position
  • \( w \) is the inertia weight
  • \( c_1 \) and \( c_2 \) are cognitive and social coefficients
  • \( r_1 \) and \( r_2 \) are random numbers between 0 and 1

Termination

The algorithm terminates when a stopping criterion is met, such as a maximum number of iterations or a satisfactory fitness level.

Applications

PSO has been applied to a wide range of optimization problems, including:

Advantages and Disadvantages

Advantages

  • Simple to implement
  • Few parameters to adjust
  • Effective for a wide range of problems

Disadvantages

  • May converge prematurely
  • Performance can be sensitive to parameter settings

Variants

Several variants of PSO have been developed to improve its performance, including:

See also

Related Pages

Template:Swarm-intelligence-stub

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Transform your life with W8MD's budget GLP-1 injections from $125.

W8mdlogo.png
W8MD weight loss doctors team

W8MD offers a medical weight loss program to lose weight in Philadelphia. Our physician-supervised medical weight loss provides:

NYC weight loss doctor appointments

Start your NYC weight loss journey today at our NYC medical weight loss and Philadelphia medical weight loss clinics.

Linkedin_Shiny_Icon Facebook_Shiny_Icon YouTube_icon_(2011-2013) Google plus


Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD