-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_generate.m
92 lines (86 loc) · 915 Bytes
/
data_generate.m
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
if is_demo==true
fprintf('Generating data for demo case.\n');
generate_data(50,5,100,10,10,0,4);
return;
end
for case_number = 1:18
n = [100
100
100
100
100
100
100
100
100
100
100
100
100
200
300
400
500
600];
M = [50
100
150
200
250
300
50
50
50
50
50
50
50
50
50
50
50
50];
S = [5
5
5
5
5
5
3
7
9
5
5
5
5
5
5
5
5
5];
p = [10
10
10
10
10
10
10
10
10
20
30
40
50
10
10
10
10
10];
q = p;
n = n(case_number);
M = M(case_number);
S = S(case_number);
p = p(case_number);
q = q(case_number);
generate_data(M,S,n,p,q,case_number,20);
end