#!/bin/sh
# To test whether scaling is able to compensate for gradual deletion over a long
# period of time
# Run for various values of activitygamma (scaling 'integral controller' weight)


# Set save path
datadir="/home/archive/users/rowanms-data/stdpscaling/scalingwithdeletion"

# Set name of parameter to vary
var="activitygamma"

# Set list of values to try
vals="1e-7 1e-8 1e-9 1e-10 1e-11 1e-12 1e-13 1e-14 1e-15"

# Set non-varying parameters with '-c' prefix
# e.g. args="-c {activitybeta=10e-7} -c {activitytau=100e3}"

# Run alz.hoc instead of stdp_scaling.hoc, for deletion
# Turn on scaling after 1000s
# Run for 160000 s of sim 
# Delete 2 neurons at a time, every 1600 s (total deletion = 200 cells)
args="-c {stdpsim=0} -c {scaling=1} -c {scalingstart=1000e3} -c {segmentlength=1600e3} -c {PreDur=160000} -c {LearnDur=0} -c {deletionstep=2}"

./batchcommon $datadir $var "$vals" "$args"