← Back to CoursesEvolutionary Programming

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Swarm Intelligence II: Ant Colony Optimization

Manual: General · Subject: Evolutionary Programming

Study how virtual ants build solutions using pheromone trails and probabilistic decision-making.

Ant Colony Optimization

ACO Intuition

Ant colony optimization is inspired by the way ants collectively discover short paths using pheromone trails. Artificial ants construct solutions step by step and reinforce promising components with pheromone updates.

ACO Concepts

Pheromone
A learned desirability signal
Heuristic information
Problem-specific attractiveness measure
Trail evaporation
Gradual forgetting of old information
Ant
A constructive search agent

ACO Pseudocode

  1. 1

    Step 1: Initialize pheromone levels.

  2. 2

    Step 2: For each ant, construct a solution probabilistically.

  3. 3

    Step 3: Evaluate solution quality.

  4. 4

    Step 4: Update pheromones on good solution components.

  5. 5

    Step 5: Evaporate pheromones to avoid stagnation.

  6. 6

    Step 6: Repeat.

ACO vs PSO

ACO

  • Constructs solutions piece by piece
  • Uses pheromone memory
  • Often strong for routing and combinatorial problems

PSO

  • Moves existing candidate positions
  • Uses velocity and best positions
  • Often strong for continuous optimization

What is pheromone evaporation used for in ACO?

What does an ant do in ACO?

Which type of problem is ACO especially well suited for?

💡

Design Insight

Good heuristic information can dramatically improve ACO performance because it guides ants before pheromone learning becomes strong.

Probability of Choosing an Edge

A common ACO choice rule assigns higher probability to edges with stronger pheromone and better heuristic value, often proportional to τijαηijβ\tau_{ij}^{\alpha}\eta_{ij}^{\beta}.