Skip to content

iasx/ants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ants

Ant Colony Optimization (ACO) algorithm for Traveling Salesman Problem (TSP) implemented in Julia.

Usage: Distance Matrices

Description

Input data for TSP can be defined in a form of a distance matrix. The matrix can be defined as a Julia array or loaded from a file.

Matrix must have Inf as a value for non-existing edges.

Example

Results for D1 matrix from data/dists.jl.

D1

Usage: TSPLIB

Description

Datasets from TSPLIB database are also supported.

Example

Optimization was performed on Wi29 dataset.

During the experiments the suboptimal tour of length 27760.0 was found in just 100 iterations with 50 ants.

Wi29My

The optimal tour of length 27603.0 is illustrated below.

Wi29Opt