forked from khoihd/python_generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen.sh
29 lines (25 loc) · 725 Bytes
/
gen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output=data
n_agents=5
#n_dom=100
repo_size=10
p1=0.5
p2=0.5
max_arity=2
max_cost=100
for n_dom in 5 10 20 30 40 50 60 70 80 90 100 120; do
for rep in $(seq 0 $repo_size); do
name=$output/random_a${n_agents}_d${n_dom}_r${rep}_p${p1}p${p2}
python src/dcop_gen_rand.py --agts $n_agents \
--doms $n_dom \
--p1 $p1 \
--p2 $p2 \
--max_arity $max_arity \
--max_cost $max_cost \
--name $name \
--ofile $name
done
done
rm $output/*.dalo
rm $output/*.wcsp
rm $output/*.maxsum
rm $output/*.json