diff --git a/python/qa/README.md b/python/qa/README.md index 4feec6d..387c506 100644 --- a/python/qa/README.md +++ b/python/qa/README.md @@ -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 diff --git a/python/qa/run-simulation-trial.sh b/python/qa/run-simulation-trial.sh new file mode 100755 index 0000000..6d2dbc4 --- /dev/null +++ b/python/qa/run-simulation-trial.sh @@ -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 \ No newline at end of file diff --git a/python/qa/run.sh b/python/qa/run.sh deleted file mode 100755 index ce8e1fe..0000000 --- a/python/qa/run.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -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 \ No newline at end of file