Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gen_tables.sh used for "The Maximum Transmission Switching Flow Problem" #113

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-*
Loading