Skip to content

Commit

Permalink
HPC scripts for cap contract
Browse files Browse the repository at this point in the history
  • Loading branch information
prakaa committed Apr 3, 2023
1 parent 93db77d commit 6b73723
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#PBS -l select=1:ncpus=16:mem=60gb
#PBS -l walltime=12:00:00
#PBS -M [email protected]
#PBS -m ae

module add julia/1.8.2-ilp64
julia -e 'using Pkg;Pkg.activate("NEMStorageUnderUncertainty");Pkg.instantiate()'
julia --project="NEMStorageUnderUncertainty" -- NEMStorageUnderUncertainty/simulations/arbitrage_capcontracted_no_degradation/simulate_actual.jl $power $energy $cap
echo "Submitted ArbCapContracted Actual $power MW $energy MWh $cap Cap MW"
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#PBS -l select=1:ncpus=16:mem=60gb
#PBS -l walltime=12:00:00
#PBS -M [email protected]
#PBS -m ae

module add julia/1.8.2-ilp64
julia -e 'using Pkg;Pkg.activate("NEMStorageUnderUncertainty");Pkg.instantiate()'
julia --project="NEMStorageUnderUncertainty" -- NEMStorageUnderUncertainty/simulations/arbitrage_capcontracted_no_degradation/simulate_forecast.jl $power $energy $cap
echo "Submitted ArbCapContracted Forecast $power MW $energy MWh $cap Cap MW"
24 changes: 24 additions & 0 deletions queue_arbcapcontracted_nodeg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

# Simulate 4 different degrees of cap contracting
# 0% of power rating (equivalent to arbthroughputpenalty with penalty of 500,000 AUD/MWh)
# 50% of power rating
# 100% of power rating
# 200% of power rating

for energy in 100
do
for cap_frac in 0.0 0.5 1.0 2.0
do
for powerratio in 0.125 0.25 0.5 1 2 4 8
do
power=$(echo "$energy*$powerratio" | bc -l)
cap=$(echo "$power*$cap_frac$" | bc -l)
for file in pbs/arbcapcontracted_nodeg/*
do
qsub -v "power=$power,energy=$energy,cap=$cap" $file
sleep 30s
done
done
done
done

0 comments on commit 6b73723

Please sign in to comment.