From 13e841fb0789986ff3acf54876fe787ad2528c86 Mon Sep 17 00:00:00 2001 From: Matheus Santana Lima Date: Mon, 17 May 2021 20:57:52 -0300 Subject: [PATCH] Improving code description to simulation trial sampling and renaming file run.sh to run-simulation.trial.sh --- python/qa/README.md | 9 +-------- python/qa/run-simulation-trial.sh | 20 ++++++++++++++++++++ python/qa/run.sh | 13 ------------- 3 files changed, 21 insertions(+), 21 deletions(-) create mode 100755 python/qa/run-simulation-trial.sh delete mode 100755 python/qa/run.sh 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