-
Notifications
You must be signed in to change notification settings - Fork 2
Home
fonsh edited this page Jan 27, 2015
·
15 revisions
- Python 2.7.X
- NumPy
- Gnuplot
Usage: python -m aco_solver.runner.parallel_runner [options] number_of_ants iterations city_dataset
Options:
- -t - population type (default 'cs')
- 'ca' - Classic Ant Population
- 'cs' - Control Sample Population
- 'ha' - High Altercentricity Condition Population
- 'la' - Low Altercentricity Condition Population
- -a - pheromone influence factor (default 3.0)
- -b - distance influence factor (default 2.0)
- -r - pheromone evaporation coefficient (0.01)
- -q - pheromone deposit (default 1.0)
- -p - allows user to specify how many times simulation should be run with the same parameters, script will run simulation as parallel process
Other:
- number_of_ants - population size
- iterations - number of iterations used in experiment
- city_dataset- dataset name from 'inputs/examples/' without '.cities' extension
Input file contains only cities coordinates in float format:
x0 y0
x1 y1
x2 y2
...
Which means that coordinates of city with id = 0 are (x0, y0) etc.
- TSPLIB examples downloaded from TSPLIB website and converted to format supported by aco-solver. Best-known solutions are placed in file: results
- Generated examples used for simple performance tests. Additional inputs can be generated with input_generator.py by specifying number of cities and map range.
All output files are stored in 'outputs' directory
- *_best.dat - file with best path's description found by the population (distance, best iteration, time, fitness inside population) - example
- *_fitness.dat - same as _best.dat, but fitness is presented in stepped way - example
- *_avg.dat - file with average values for population (distance, time, fitness inside population) - example
- *_path.dat - file with coordinates of best found path - example
Generates average results with standard deviation from parallel_runner's output files, needed by gnuplot.
Usage: python aco_solver/summary/avg_summary_generator.py number_of_ants iterations city_dataset output_directory
- number_of_ants - population size
- iterations - number of iterations used in experiment
- city_dataset- dataset name from 'inputs/examples/' without '.cities' extension
- output_directory - directory with parallel_runner's output files, summary will be saved to that directory also
Parallel_runner's output files
File with average summary for all computed results for one case - summary for berlin52 10 10