Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

✈️💼 Travelling Salesman Problem approached using the Simmulated Annealing algorithm

License

Notifications You must be signed in to change notification settings

jmg-duarte/simmulated-annealing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simmulated Annealing

"Simulated annealing (SA) is a probabilistic technique for approximating the global optimum of a given function." - Wikipedia

Introduction

During the semester I took an Introduction to Artificial Intellegence course, one of the exercises was to apply the Simmulated Annealing algorithm to the Travelling Salesman Problem

Me and my colleagues implemented it in Java, since it is pretty much the lingua franca of the course. But I wasn't satisfied. During the vacations I wanted to do it in Go, this wonderfully simple C-like language, and so I did. This is the result.


Usage

The program takes a text file as input with the following format

Node X Y
Lisbon 50 40
Porto 140 0
London 300 300
(and so on) ... ...

After compilling you can run the program simply by typing:

./simm <input>.txt

You can call for help by typing:

./simm -h

About

✈️💼 Travelling Salesman Problem approached using the Simmulated Annealing algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages