Particle swarm optimization
Class | 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[edit | edit source]
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[edit | edit source]
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[edit | edit source]
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[edit | edit source]
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[edit | edit source]
The algorithm terminates when a stopping criterion is met, such as a maximum number of iterations or a satisfactory fitness level.
Applications[edit | edit source]
PSO has been applied to a wide range of optimization problems, including:
- Function optimization
- Neural network training
- Fuzzy system control
- Robotics
- Signal processing
Advantages and Disadvantages[edit | edit source]
Advantages[edit | edit source]
- Simple to implement
- Few parameters to adjust
- Effective for a wide range of problems
Disadvantages[edit | edit source]
- May converge prematurely
- Performance can be sensitive to parameter settings
Variants[edit | edit source]
Several variants of PSO have been developed to improve its performance, including:
- Discrete Particle Swarm Optimization
- Multi-objective Particle Swarm Optimization
- Hybrid Particle Swarm Optimization
See also[edit | edit source]
Related Pages[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
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 Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD