Skip to content

A Python implementation of the Ant Colony Optimization algorithm for generating solutions to such problems as the Traveling Salesman Problem.

Notifications You must be signed in to change notification settings

johnberroa/Ant-Colony-Optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ant Colony Optimization

A Python implementation of the Ant Colony Optimization algorithm for generating solutions to such tasks as the Traveling Salesman Problem

Example Usage

problem = some_distance_matrix
optimizer = AntColonyOptimizer(ants=10, evaporation_rate=.1, intensification=2, alpha=1, beta=1,
                               beta_evaporation_rate=0, choose_best=.1)
 
best = optimizer.fit(problem, 100)
optimizer.plot()

Example Plot

ACO Fitted

Now 20x faster than my first attempt!

About

A Python implementation of the Ant Colony Optimization algorithm for generating solutions to such problems as the Traveling Salesman Problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages