
#!/bin/bash

#runs EXP 4 and EXP 14 (CCR varies, 50 runs each)
# CCR has to be bigger than 0.5!!!! for the call: multiply with 10!!
# hence CCR = 0.6 has to be called with 6


# i: num of diff platforms and randomBase 
# j: heuristic
# k: strategy
# f: reuse: true/false

#optional:
# l: numProcs
# m: numObjects
# n: numOperators
# o: bound
# p: numApplications

# q: expID
# r: range


# call:
#default: java RunHeuristics j k i f
#java RunHeuristics j k i f l m n o p q r


javac RunHeuristics.java 

# CCR = [0.6,2.4]
for r in 6 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200
do
    for k in 0 1 2 3
    do 
	echo exp4 strategy $k range $r
	java RunHeuristics 0 $k 50 true 30 10 500 50 5 4 $r > file4 #0$k-$r
    done
done

for r in 6 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200
do
    for k in 0 1 2 3
    do 
	echo exp14 strategy $k range $r
	java RunHeuristics 0 $k 50 false 30 10 500 50 5 14 $r > file4 #1$k-$r
    done
done


#Experience IDs:

#with reuse (reuse = true!!)
#1 numApplications
#2 numProcs 
#3 size of application
#4 CCR (comm-comp-ratio)
#5 similarite des applis

#without reuse (reuse = false!!)
#11 numApplication
#12 numProcs
#13 ...
#14
#15

