Skip to content
Snippets Groups Projects
Commit 11bb71cc authored by rhaag's avatar rhaag
Browse files

Serverside Settings

parent 2932097a
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,25 @@ name = "earliest_pickup_testing_phase" ...@@ -3,6 +3,25 @@ name = "earliest_pickup_testing_phase"
include(settings_name) include(settings_name)
map_folder = "./example_map/map/"
dispatcher_folder = "./example_map/delays_wt1reldelta1/"
for name in readdir(map_folder, join=false)
try
cp(map_folder*"/"*name, paths[:map]*"/"*name)
catch e
println(e)
end
end
for name in readdir(dispatcher_folder, join=false)
try
cp(dispatcher_folder*"/"*name, paths[:dispatcher]*"/"*name)
catch e
println(e)
end
end
for (name, path) in paths for (name, path) in paths
try try
mkpath(path) mkpath(path)
...@@ -11,15 +30,9 @@ for (name, path) in paths ...@@ -11,15 +30,9 @@ for (name, path) in paths
end end
end end
map_folder = "./example_map/map/*"
dispatcher_folder = "/example_map/delays_wt1reldelta1/*"
run(`cp -r $(map_folder) $(paths[:map])/`)
run(`cp -r $(dispatcher_folder) $(paths[:dispatcher])/`)
#cp("./example_map/delays_wt1reldelta1/*", paths[:dispatcher]*"/", force=true)
N=1 N=1
SGE_TASK_ID=12 SGE_TASK_ID=12
JOB_NAME=name JOB_NAME=name
run("/usr/ds/bin/julia sim_temp.jl $N $SGE_TASK_ID $JOB_NAME") run(`/usr/ds/bin/julia sim.jl $SGE_TASK_ID $settings_name $JOB_NAME`)
...@@ -12,9 +12,9 @@ path="/scratch01.local/rhaag/$(String(request_type))/$name/" # Path were everyt ...@@ -12,9 +12,9 @@ path="/scratch01.local/rhaag/$(String(request_type))/$name/" # Path were everyt
# Simulation Settings # Simulation Settings
N=1 #Number of Busses N=10 #Number of Busses
requested = 1 * N # Number of requests, that need to be made requested = 200 * N # Number of requests, that need to be made
served = 1 * N # Number of requests, that need to be served served = 200 * N # Number of requests, that need to be served
#Random Generator #Random Generator
rng_type = :notRandom rng_type = :notRandom
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
#$ -S /bin/bash #$ -S /bin/bash
#$ -cwd #$ -cwd
#$ -q grotrian.q #$ -q titan.q
#$ -j yes #$ -j yes
#$ -N earliest_pickup_testing_phase #$ -N earliest_pickup_testing_phase
#$ -t 1-1600 #$ -t 1-1600
#$ -tc 500
SETTINGS_NAME="./standard_settings.jl"
/usr/ds/bin/julia sim.jl $SGE_TASK_ID $SETTINGS_NAME $JOB_NAME
/usr/ds/bin/julia sim.jl $N $SGE_TASK_ID $JOB_NAME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment