Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nwtgck/ant-colony-optimization-scala

Ant Colony Optimization in Scala
https://github.com/nwtgck/ant-colony-optimization-scala

aco ant-colony-optimization scala

Last synced: 14 days ago
JSON representation

Ant Colony Optimization in Scala

Awesome Lists containing this project

README

        

# Ant Colony Optimization in Scala [![Build Status](https://travis-ci.org/nwtgck/ant-colony-optimization-scala.svg?branch=master)](https://travis-ci.org/nwtgck/ant-colony-optimization-scala)

![Demo gif](/demos/seed-3.gif)

## How to run Main

```
cd
sbt "runMain Main"
```
### Options

You can specify some options bellow

```bash
sbt "runMain Main --help"
```

```
Usage: TSP solver by Ant Colony Optimization [options] []

--help prints this usage text
-i, --n-iters The number of iteration
-a, --n-ants The number of ants
--alpha alpha
--beta beta
--q Q
--ro ro
--outpath output directory path
--seed random seed
--realtime-figure Render realtime figure

```

### An example

```bash
sbt "runMain Main --n-ants=10 --seed=12 --n-iters=5 ./tsp/wi29.tsp"
```

## How to run LegacyMain

```
cd
sbt "runMain LegacyMain"
```

## Reference

* https://qiita.com/EnsekiTT/items/9b13ceba391221687f42