-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into franziska-wegner/2024/january/evaluation/201…
…8_ACM-e-Energy_The-Maximum-Transmission-Switching-Flow-Problem/plot-DTP-betweenness-centrality-single
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
.../2018_ACM_The-Maximum-Transmission-Switching-Flow-Problem/experiments/runStdExperiment.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |