-
-
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/tests/algorith…
…ms/DominatingThetaPath
- Loading branch information
Showing
9 changed files
with
1,058 additions
and
406 deletions.
There are no files selected for viewing
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,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [franziska-wegner] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
67 changes: 67 additions & 0 deletions
67
...imum-Transmission-Switching-Flow-Problem/statistics/gen_dc_maximizing_gurobi_csv_files.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,67 @@ | ||
#!/bin/sh | ||
# | ||
# gen_dc_maximizing_gurobi_csv_files.sh | ||
# | ||
# Created on: - | ||
# Author: Franziska Wegner | ||
# | ||
# Defines a standard usage interface for the experiments including 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. | ||
# | ||
|
||
if [ -n "$1" ]; then | ||
PATH=$1 | ||
else | ||
PATH="/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtsf_cases/" | ||
fi | ||
echo "Path to the benchmark cases:\t$PATH" | ||
|
||
if [ -n "$2" ]; then | ||
OUTPUT=$2 | ||
else | ||
OUTPUT="/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata" | ||
fi | ||
echo "Output path:\t$OUTPUT" | ||
# "/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtsf_cases/" | ||
# "/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtsf_cases/dc_pf_gurobi.csv" | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run Power Flow (PF) | ||
# --------------------------------------------------------------------------- | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/DCMTSF $PATH "$OUTPUT/dc_pf_gurobi.csv" PF gurobi | ||
|
||
# find "/Users/fwegner/Documents/work/frameworks/egoa/.build/bin/" -name \*.lp -exec cp {} "/Users/fwegner/Documents/work/paper/MTSF-ACM-e-Energy/02-ACM/data/results/MTSF-gurobi/lp" | ||
# find "/Users/fwegner/Documents/work/frameworks/egoa/.build/bin/" -name \*.mps -exec cp {} "/Users/fwegner/Documents/work/paper/MTSF-ACM-e-Energy/02-ACM/data/results/MTSF-gurobi/mps" | ||
# find "/Users/fwegner/Documents/work/frameworks/egoa/.build/bin/" -name \*.rew -exec cp {} "/Users/fwegner/Documents/work/paper/MTSF-ACM-e-Energy/02-ACM/data/results/MTSF-gurobi/rew" | ||
# find "/Users/fwegner/Documents/work/frameworks/egoa/.build/bin/" -name \*.rlp -exec cp {} "/Users/fwegner/Documents/work/paper/MTSF-ACM-e-Energy/02-ACM/data/results/MTSF-gurobi/rlp" | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run Maximum Power Flow (MPF) | ||
# --------------------------------------------------------------------------- | ||
/Users/fwegner/Documents/work/frameworks/egoa/.build/bin/DCMTSF $PATH "$OUTPUT/dc_MYTEST_mpf_gurobi.csv" MPF gurobi | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run Maximum Transmission Switching Flow (MTSF) | ||
# --------------------------------------------------------------------------- | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/DCMTSF $PATH "$OUTPUT/dc_mtsf_gurobi.csv" DCMTSF gurobi | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run Maximum Flow (MF) | ||
# --------------------------------------------------------------------------- | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/DCMTSF $PATH "$OUTPUT/dc_mf_gurobi.csv" MF gurobi | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run Optimal Transmission Switching (OTS) | ||
# --------------------------------------------------------------------------- | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/DCOTS "/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtsf_cases/" "/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtsf_cases/dc_ots_gurobi.csv" DCOTS gurobi | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/DCOTS $PATH "$OUTPUT/dc_ots_gurobi.csv" DCOTS gurobi | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run Maximum Spanning Tree with MF (MaxStMF) | ||
# --------------------------------------------------------------------------- | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/MaxST "/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtf_cases/" "/Users/fwegner/Documents/work/frameworks/egoa/.build/test/testdata/dc_mtsf_cases/dc_MaxST_gurobi.csv" | ||
# /Users/fwegner/Documents/work/frameworks/egoa/.build/bin/MaxST $PATH "$OUTPUT/dc_maxst_mf_gurobi.csv" MF gurobi |
58 changes: 58 additions & 0 deletions
58
...mum-Transmission-Switching-Flow-Problem/statistics/gen_plot_dtp_betweenness_centrality.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,58 @@ | ||
#!/bin/sh | ||
# | ||
# gen_plot_dtp_betweenness_centrality.sh | ||
# | ||
# Created on: - | ||
# Author: Franziska Wegner | ||
# | ||
# Generates the DTP betweenness centrality plot that is used in the paper | ||
# "The Maximum Transmission Switching Flow Problem", 2018, ACM e-Energy, | ||
# doi:10.1145/3208903.3208910. | ||
# | ||
|
||
if [ -n "$1" ]; then | ||
PATH=$1 | ||
else | ||
PATH="/Users/franziska-wegner/Documents/work/paper/MTSF-ACM-e-Energy/02-ACM/data/results/DTP-Betweenness/" | ||
fi | ||
echo "\nPath to the benchmark cases:\t$PATH" | ||
|
||
if [ -n "$2" ]; then | ||
OUTPUT=$2 | ||
else | ||
OUTPUT="/Users/franziska-wegner/Documents/work/paper/MTSF-ACM-e-Energy/02-ACM/plots" | ||
fi | ||
echo "Output path:\t\t\t$OUTPUT" | ||
|
||
if [ -n "$3" ]; then | ||
AS_STANDALONE=$3 | ||
else | ||
AS_STANDALONE=false | ||
fi | ||
echo "Write .tex as standalone:\t$AS_STANDALONE\n" | ||
|
||
# --------------------------------------------------------------------------- | ||
# Run plots | ||
# - does not work: # /Users/fwegner/anaconda/bin/Rscript | ||
# --------------------------------------------------------------------------- | ||
echo "RUN SCRIPTS IN RSTUDIO USING CMD+B! ISSUE COULD NOT BE RESOLVED. Franzi" | ||
# if [ $AS_STANDALONE != false ]; then # Print out as tex standalone | ||
# echo "Print out as tex standalone" | ||
# /Library/Frameworks/R.framework/Versions/Current/Resources/Rscript ./plot_dtp_betweenness_centrality_single.R "$PATH" "$OUTPUT" FALSE TRUE | ||
# /Library/Frameworks/R.framework/Versions/Current/Resources/Rscript ./plot_dtp_betweenness_centrality_single_cutY.R "$PATH" "$OUTPUT" FALSE TRUE | ||
# else # Print out as tex | ||
# echo "Print out as .tex includeable file" | ||
# /Library/Frameworks/R.framework/Versions/Current/Resources/Rscript ./plot_dtp_betweenness_centrality_single.R "$PATH" "$OUTPUT" FALSE FALSE | ||
# /Library/Frameworks/R.framework/Versions/Current/Resources/Rscript ./plot_dtp_betweenness_centrality_single_cutY.R "$PATH" "$OUTPUT" FALSE FALSE | ||
# fi | ||
|
||
# All Cases in one plot with quantiles | ||
# /Library/Frameworks/R.framework/Versions/Current/Resources/Rscript ./plot_dtp_betweenness_centrality_all_quantiles.R "$PATH" "$OUTPUT/plot_dtp_betweenness_centrality_all_quantiles" "FALSE" | ||
|
||
# --------------------------------------------------------------------------- | ||
# Replace strings | ||
# --------------------------------------------------------------------------- | ||
# /usr/bin/sed -i -- 's/\\tablecase/tablecase/g' "$OUTPUT/DTP_BC-AllNestaCases_And_Quantiles.tex" | ||
# /usr/bin/sed -i -- 's/\\{/{/g' $OUTPUT/* | ||
# /usr/bin/sed -i -- 's/\\}/}/g' $OUTPUT/* | ||
# /bin/rm -f $OUTPUT/*.tex-* |
25 changes: 25 additions & 0 deletions
25
...uations/2018_ACM_The-Maximum-Transmission-Switching-Flow-Problem/statistics/gen_tables.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,25 @@ | ||
#!/bin/sh | ||
# | ||
# gen_tables.sh | ||
# | ||
# Created on: - | ||
# Author: Franziska Wegner | ||
# | ||
# Generates the short and long tables that are used in the paper | ||
# "The Maximum Transmission Switching Flow Problem", 2018, ACM e-Energy, | ||
# doi:10.1145/3208903.3208910. | ||
# | ||
|
||
/Users/fwegner/anaconda/bin/Rscript ./table_models_algorithms.R $PATH "tbl:MTSF_MPF_PF_MF_long" "TRUE" "FALSE" >$OUTPUT/tbl-milp-comparison-long.tex | ||
#........................................................................................................./\ | ||
#.......................................................................................................Short? | ||
#.........................................................................................................\/ | ||
/Users/fwegner/anaconda/bin/Rscript ./table_models_algorithms.R $PATH "tbl:MTSF_MPF_PF_MF_short" "TRUE" "TRUE" >$OUTPUT/tbl-milp-comparison-short.tex | ||
|
||
# --------------------------------------------------------------------------- | ||
# Replace strings | ||
# --------------------------------------------------------------------------- | ||
/usr/bin/sed -i -- 's/\$\\backslash\$/\\/g' $OUTPUT/* | ||
/usr/bin/sed -i -- 's/\\{/{/g' $OUTPUT/* | ||
/usr/bin/sed -i -- 's/\\}/}/g' $OUTPUT/* | ||
/bin/rm -f $OUTPUT/*.tex-* |
Oops, something went wrong.