Ant Colony Optimisation Algorithm

Ant Colony - Code Plugins - Apr 26, 2021
4.67 out of 5 stars(6 ratings)
  • 83%
  • 0%
  • 17%
  • 0%
  • 0%

Ant Colony Optimization algorithm (ACO) for finding optimal paths.

  • Supported Platforms
  • Supported Engine Versions
    4.26 - 4.27, 5.0 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

The ant colony optimization algorithm (ACO) is a probabilistic technique for solving computational problems which can be reduced to finding good paths through graphs. Artificial ants stand for multi-agent methods inspired by the behavior of real ants. It helps to solve various tasks, including vehicle routing, internet routing [Wiki].

Finding an optimal path with brute force on the other hand would require a lot of computer power: (n-1)!/2 variant to compare, where n is the number of agents. For 15 points it would require to compare 43,589,145,600 paths.

With this plugin will be able to find the route for the same amount of points without notice.


  • Finding an optimal path in changing environment using Ant Algorithm link;
  • How changing obstacles affects path, calculated using Ant Algorithm link;
  • Ant Algorithm in action for round objects on a moving platform: link;
  • Ant Algorithm represents Eiffel Tower made of different paths: link;
  • Ant Algorithm runtime path calculations for round objects link;
  • Drawing a path with Ant Algorithm using the editor in Unreal Engine 4 link.

Technical Details


  • Finding an optimal path for actors in the scene;
  • Great for NPC's patrolling path automation;
  • Editing path in the editor with WYSIWYG concept;
  • Adapting path to moving targets;
  • Multithreaded calculations will not freeze the game thread;
  • Included Automation tests will help you to modify the solver for your needs if you want to.

Number of Blueprints: 1

Number of C++ Classes: 6

Network Replicated: No

Supported Platforms: Win64

Documentation: Tutorial

Example Unreal Project (plugin is required): 4.26, 4.27, 5.0, 5.1

Notes: This plugin has limits on the size of the path it can solve. It was tested for 15 points with stable results.