Skip to content

Commit

Permalink
Separate shell scripts for solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Aug 12, 2019
1 parent da8c2cd commit 061da69
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions run_analysis_cbc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MODEL_RUN_NAME=TEMBA_03_07_Ref
DATA_FOLDER=output_data

INPUT_FILE=$MODEL_RUN_NAME.xlsx

MODEL_FILE=model/Temba_0406_modex.txt

DATA_FILE=$DATA_FOLDER/$MODEL_RUN_NAME.txt

python scripts/excel_to_osemosys.py input_data $INPUT_FILE $DATA_FILE
python scripts/CBC_results_AS_MODEX.py $INPUT_FILE

glpsol -m $MODEL_FILE -d $DATA_FOLDER/output.txt --wlp $DATA_FOLDER/$MODEL_RUN_NAME.lp.gz --check

# Solve with CBC
cbc $DATA_FOLDER/$MODEL_RUN_NAME.lp.gz -dualpivot pesteep -psi 1.0 -pertv 52 -duals solve -solu results/$MODEL_RUN_NAME.sol
File renamed without changes.

0 comments on commit 061da69

Please sign in to comment.