liveBook · Manning

Simple ant colony optimization

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

Simple ant colony optimization is a basic ant-colony metaheuristic that constructs candidate solutions using simulated pheromone trails.

Simple ant colony optimization (SACO) is a population-based metaheuristic for constructing graph solutions with simulated pheromone trails. It models how ants collectively favor promising paths: better solutions intensify trails, attracting further exploration. section 10.3.1 section 10.6

A SACO iteration follows this pattern:

  • Initialize every edge with a small random pheromone concentration and place multiple ants at the source node. section 10.3.1
  • Let each ant incrementally construct a feasible path, initially selecting randomly and later using a transition probability. section 10.3.1
  • Weight each possible move using pheromone concentration and heuristic desirability, typically the inverse of edge distance. section 10.3.1
  • Evaporate pheromone and deposit new pheromone during construction, after construction, or through both update methods. section 10.6

Choosing the next edge

With five ants, initial pheromone 0.5, and α = β = 1, an ant at node 1 compares neighboring nodes 2 and 3. Using inverse edge length as desirability, it calculates both transition probabilities, generates a random number between 0 and 1, and selects the corresponding edge; the more desirable edge is more likely. section 10.3.1

Figure 10.8 The first ant is at source node 1 with neighbors 2 and 3. There are two numbers on each edge separated by a colon. The first number represents the length of the edge, and the second represents the current pheromone concentration on the edge.

Inspect the graph showing edge lengths alongside current pheromone concentrations before path construction. section 10.3.1

Figure 10.10 Updated pheromone concentrations

Inspect how pheromone concentrations change after ants construct paths. section 10.3.1

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

How deep it goes
Explains initialization, probabilistic transitions, heuristic weighting, and pheromone updates, but does not develop formal proofs.
Examples
Uses a shortest-path graph, five ants, edge distances, random transition selection, and updated pheromone concentrations.
What it assumes
Assumes familiarity with graph nodes, edges, paths, distance, and basic probability.
What you can do after
Apply probabilistic path construction and pheromone updates to a small graph-search problem.
How it connects
Connects SACO with ant colony optimization, ant system, ant colony system, max–min ant system, and exploration–exploitation balance.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.