Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 884 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 884 Bytes

Installing

Requires node.js and a node package: $ npm install commander

Running

Run aco.js as a script: $ node aco.js --help

Some commands don't run exactly as advertised.

Hacking

This is super work-in-progress hacktastic experimentation code. Many things are out of synch. You have been warned.

aco.js

aco.js is a monolithic file with everything in it.

First, there are some interface style classes (Graph, Ant). They aren't used directly, they're more an example of common functionality. They are also inherited from in a weird way.

There are then multiple Ant implementations, (ShortestPath for testing and two problem onstructions) and ACO implementations.

At the bottom is script stuff for testing and running the thing as a command line app.

plot.py

This script takes a json file as input and plots all of the arrays in it.