liveBook · Manning

Ant colony optimization

Ant colony optimization is a population-based probabilistic optimization technique in which artificial agents use simulated pheromone trails to guide the search for good solutions.

How 2 Manning books explain it

Optimization Algorithms: AI techniques for design, planning, and control problems

Ant colony optimization is a population-based optimization algorithm inspired by ants’ collective foraging behavior and pheromone-based path selection.

How it is used
Applies population-based search to routes, with scheduling and assignment identified as further optimization uses.
How deep it goes
Works from a two-path model through probabilistic graph choices and Python implementation, emphasizing parameter effects rather than formal proof.
Examples
Uses a two-path foraging model, a small graph shortest-path problem, and a 20-city open traveling-salesperson route.
What you can do after
Build it from scratch in Python for open TSP, or apply it via ACOpy to a weighted graph.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains ant colony optimization →

Grokking AI Algorithms, Second Edition

Ant colony optimization is a population-based optimization technique that uses simulated pheromone-guided behavior of ants to search for good solutions to combinatorial problems.

How it is used
Searches large route and sequencing spaces by reinforcing promising choices across repeated tours.
How deep it goes
Walks through initialization, probabilistic next-stop selection, pheromone updates, stopping, and a Python roulette-wheel implementation.
Examples
Uses an ant bridge, a carnival-attraction tour, delivery routing, and Python code for weighted random selection.
What you can do after
Build it from scratch as a simple route-search algorithm that initializes trails, constructs tours, updates pheromones, and returns the best-found route.

Read how Grokking AI Algorithms, Second Edition explains ant colony optimization →

Related concepts

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.