export LD_LIBRARY_PATH=../lib/

name1=investor_IRP
name2=investor_IAP
name3=investor_IRE
name4=investor_IAE
name5=investor_OR
name6=investor_OA

echo "Computing investor IRP"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/investor/investor_mdp.prism ../prism-examples/investor/investor.props -property 5 -const vmax=20,vinit=0 -dectree,search=300,learn=0,stratasDTSim,onlyTarget,multiLearn,train=1000,verify=1000,export=../output/csv/$name1 > ../output/txt/$name1.txt
column -s "," -t < ../output/csv/$name1.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing investor IAP"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/investor/investor_mdp.prism ../prism-examples/investor/investor.props -property 5 -const vmax=20,vinit=0 -dectree,search=300,learn=0,stratasDTSim,multiLearn,train=1000,verify=1000,export=../output/csv/$name2 > ../output/txt/$name2.txt
column -s "," -t < ../output/csv/$name2.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing investor IRE"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/investor/investor_mdp.prism ../prism-examples/investor/investor.props -property 5 -const vmax=20,vinit=0 -dectree,search=300,learn=0,stratasDTSim,onlyTarget,train=1000,verify=1000,export=../output/csv/$name3 > ../output/txt/$name3.txt
column -s "," -t < ../output/csv/$name3.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing investor IAE"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/investor/investor_mdp.prism ../prism-examples/investor/investor.props -property 5 -const vmax=20,vinit=0 -dectree,search=300,learn=0,stratasDTSim,train=1000,verify=1000,export=../output/csv/$name4 > ../output/txt/$name4.txt
column -s "," -t < ../output/csv/$name4.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing investor OR"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/investor/investor_mdp.prism ../prism-examples/investor/investor.props -property 5 -const vmax=20,vinit=0 -dectree,search,learn=2,stratasDTSim,onlyTarget,train=1000,verify=1000,export=../output/csv/$name5 > ../output/txt/$name5.txt
column -s "," -t < ../output/csv/$name5.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing investor OA"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/investor/investor_mdp.prism ../prism-examples/investor/investor.props -property 5 -const vmax=20,vinit=0 -dectree,search,learn=2,stratasDTSim,train=1000,verify=1000,export=../output/csv/$name6 > ../output/txt/$name6.txt
column -s "," -t < ../output/csv/$name6.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'
