Particle swarm optimization
Particle swarm optimization is a population-based optimization method in which candidate solutions adjust their positions using individual and collective search information.
Optimization Algorithms: AI techniques for design, planning, and control problems
Particle swarm optimization is a population-based optimization algorithm in which candidate particles adjust their movement using individual and collective experience.
- How it is used
- Uses cooperative population search for continuous and discrete optimization problems.
- How deep it goes
- Explains particle guidance and parameter trade-offs, with continuous, binary, permutation-based, and adaptive variants.
- Examples
- Illustrates cooperative treasure hunting and a 20-city route scored by tour distance.
- What you can do after
- Applies PSO via PySwarms to score candidate tours and obtain a city route.
Evolutionary Deep Learning: Genetic algorithms and neural networks
Particle swarm optimization is a population-based optimization algorithm in which candidate solutions move through a search space according to collective-swarm behavior.
- How it is used
- Applies population search to function parameters and automatic hyperparameter optimization.
- How deep it goes
- Works through DEAP particle generation, fitness evaluation, best tracking, velocity updates, and a complete swarm loop.
- Examples
- Uses cannon-shot velocity and angle to hit a target distance, plus loss-driven neural-network hyperparameter search.
- What you can do after
- Apply it via DEAP to optimize function inputs or map particle vectors to model hyperparameters.
Grokking AI Algorithms, Second Edition
Particle swarm optimization is a swarm-intelligence optimization technique in which particles adjust candidate solutions using collective and individual search information.
- How it is used
- Uses a swarm to search large, multidimensional optimization spaces without exhaustively testing every value.
- How deep it goes
- Outlines initialization, fitness evaluation, iterative movement, stopping, and solution selection, while noting that movement details are intricate.
- Examples
- Uses drone material ratios, pepper attributes, and neural-network weights to illustrate search spaces and applications.
- What you can do after
- Evaluate/understand PSO as a way to search for good solutions and identify the main stages of a swarm search.
Read how Grokking AI Algorithms, Second Edition explains particle swarm optimization →
Also covered in
What to know first
- genetic algorithmA genetic algorithm is an evolutionary optimization method that improves a population of candidate solutions through fitness-based selection and variation, often including recombination and mutation.
- artificial intelligenceArtificial intelligence is the field of computing concerned with creating systems that perform tasks associated with intelligence, such as learning, reasoning, perception, and decision-making.
- evolutionary computationEvolutionary computation is a family of search and optimization methods that iteratively improve candidate solutions through variation and selection inspired by biological evolution.
- fitnessFitness is a numerical score indicating how well a candidate solution performs relative to an optimization objective.
Related concepts
- particleuses · A particle is an individual entity represented or managed as a unit within a physical or computational model.
- cognitive componentuses · A particle-swarm parameter controlling the influence of a particle’s attraction toward its own best-known position.
- hyperparameter tuninguses · Hyperparameter tuning is the systematic selection of configurable model or learning-procedure settings by evaluating alternatives against a chosen objective.
- inertia componentuses · The inertia component is the particle-swarm velocity term that weights a particle’s previous velocity during movement updates.
- populationuses · A population is a defined group or complete set of people, units, observations, or candidate solutions considered together in a particular context.
- social componentuses · The social component is a particle-swarm parameter that weights attraction toward the best-known position of the swarm or a neighborhood.
Questions about particle swarm optimization
What is particle swarm optimization?
Particle swarm optimization is a population-based optimization method in which candidate solutions adjust their positions using individual and collective search information.
Which Manning books explain particle swarm optimization?
Optimization Algorithms: AI techniques for design, planning, and control problems, Evolutionary Deep Learning: Genetic algorithms and neural networks and Grokking AI Algorithms, Second Edition.
What should I know before learning particle swarm optimization?
Manning books that teach particle swarm optimization usually introduce genetic algorithm, artificial intelligence, evolutionary computation and fitness first.
What is particle swarm optimization also called?
Particle swarm optimization is also called PSO.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


