Skip to content

Commit

Permalink
Add Script for Standard Experiments for the paper "The Maximum Transm…
Browse files Browse the repository at this point in the history
…ission Switching Flow Problem" (#90)

This PR adds the script `evaluations/2018_ACM_The-Maximum-Transmission-Switching-Flow-Problem/experiments/runStdExperiment.sh` that defines a standard experiment for [1]. The interface for the experiments include the details of a specified configuration script. Templates for configuration scripts can be found under
* ./localConfig.sh
* ./serverConfig.sh where "./localConfig.sh" is the default configuration.

Publication:
[1] The Maximum Transmission Switching Flow Problem, 2018, ACM e-Energy, doi:10.1145/3208903.3208910.
  • Loading branch information
franziska-wegner committed Jan 5, 2024
1 parent 6eae9d2 commit 487ea65
Showing 1 changed file with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/sh
#
# runStdExperiment.sh
#
# Created on: Jan 30, 2019
# Author: Franziska Wegner
#
# Runs the standard experiments for the paper.
#

EGOA_STD_CONFIG_FILE="../Configurations/localStdConfig.sh"
source "./Usages/standardUsage.sh"

#########################################################
# Execute ###############################################
#########################################################
source "../helper.sh"

# Clean output directory
if [ "${cleanOutputDirectory}" = "TRUE" ]; then
echo "\n-- Clean output directory $(dirOutput)\n"
$(/bin/rm -rf ${dirOutput}/*)
sleep 2
fi

# Run executable on all files in directory
pids=""
for entry in "$dirBenchmarkData"/*; do
if [ -f "$entry" ]; then
echo "Run experiment for $entry"
waitforprocesses $PROCESSES
${executable} -f "$entry" -a "$algorithm" -o "$dirOutput/" -z "$maxExecutionTime" -r "$trackSolutions" &
pids+=" $!"
fi
done

waitforallprocesses $pids

#########################################################
# Output general information ############################
#########################################################
echo
echo "---------------------------------------------------------------------------------------------------"
echo
echo "-- The config file is set to:\t\t${configFile}"
echo "-- Current directory is:\t\t$(pwd)"
echo
echo "Experiment Configuration Overview"
echo "\tAlgorithm: $algorithm"
echo "\tClean Output Directory: $cleanOutputDirectory"
echo "\tBenchmark Data Directory: $dirBenchmarkData"
echo "\tOutput Directory: $dirOutput"
echo "\tExecutable: $executable"
echo "\tMaximum Execution Time: $maxExecutionTime"
echo "\tTrack Solutions: $trackSolutions"
echo "\tNumber of Parallel Executions: $numParallelExecutions"
echo "\tNumber of Parallel Processes Per Algo: $numParallelProcessesEach"

0 comments on commit 487ea65

Please sign in to comment.