Skip to content

Commit

Permalink
Improving code description to simulation trial sampling and renaming …
Browse files Browse the repository at this point in the history
…file run.sh to run-simulation.trial.sh
  • Loading branch information
Matheus Santana Lima authored and Matheus Santana Lima committed May 17, 2021
1 parent 106ccbc commit 13e841f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
9 changes: 1 addition & 8 deletions python/qa/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
Matheus Lima (Computer Science, Federal University of Sao Carlos, Brazil)

(1) To run:

$ ./run.sh

(2) To change the path of the TSP data file: change the path in the Makefile.

Matheus Lima (Computer Science, Federal University of Sao Carlos, Brazil

# Quantitative Algorithm to solve the TSP problem

Expand Down
20 changes: 20 additions & 0 deletions python/qa/run-simulation-trial.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

# The goal of this script is to simplify the collection and the generation of the trial sample data (with n=50 population size).
# The n=50 is arbitrarily set, as the minimum recommendation for the t-test is a sample size larger than 30.

# The code writes the algorithm output variables (i.e. values for the best solution cost, total execution time and the initial solution distance) for each completed execution in a text file.
# Those values were them analyzed using a statistical test (details in the README.md file). The script provides an automated method to deploy the proposed method QA and the benchmark SA. The data set that can be quantified by statistical modeling.


rm -rf ./output/*
for ((i=1;i<=50;i++)); do



python3.9 ./TSP-Quantitative-Algorithm.py a280.tsp ;
python3 ./SA-Benchmark.py a280.tsp


echo "====="
done
13 changes: 0 additions & 13 deletions python/qa/run.sh

This file was deleted.

0 comments on commit 13e841f

Please sign in to comment.