-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircuit_breaker.m
59 lines (41 loc) · 1.72 KB
/
circuit_breaker.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
p1=0
p2=1
p3=1
p4=1
p5=1
p6=1
AGIRLIK1=0.2
AGIRLIK2=0.1
AGIRLIK3=0.7
for n=1000:500:10000
for k=100:50:1000
%-------------------------A Markasi--------------------------
marka_A(p2+p1,1)=n;
marka_A(p1+p2,2)=k;
marka_A(p3,3)=randi([0 100],1,1); % Secim Parametresi1 Reliability
marka_A(p4,4)=randi([0 100],1,1); % Secim PArametresi Environment
marka_A(p5,5)=randi([0 100],1,1); % Secim parametresi COST
marka_A(p6,6)= AGIRLIK1*marka_A(p3,3)+AGIRLIK2*marka_A(p4,4)+AGIRLIK3*marka_A(p5,5); % Secim Skor Puani 100 uzerinden hepsi
%-------------------------B Markasi--------------------------
marka_B(p2+p1,1)=n;
marka_B(p1+p2,2)=k;
marka_B(p3,3)=randi([0 100],1,1); % Secim Parametresi1 Reliability
marka_B(p4,4)=randi([0 100],1,1); % Secim PArametresi Environment
marka_B(p5,5)=randi([0 100],1,1); % Secim parametresi COST
marka_B(p6,6)= AGIRLIK1*marka_B(p3,3)+AGIRLIK2*marka_B(p4,4)+AGIRLIK3*marka_B(p5,5); % Secim Skor Puani 100 uzerinden hepsi
%-------------------------C Markasi--------------------------
marka_C(p2+p1,1)=n;
marka_C(p1+p2,2)=k;
marka_C(p3,3)=randi([0 100],1,1); % Secim Parametresi1 Reliability
marka_C(p4,4)=randi([0 100],1,1); % Secim PArametresi Environment
marka_C(p5,5)=randi([0 100],1,1); % Secim parametresi COST
marka_C(p6,6)= AGIRLIK1*marka_C(p3,3)+AGIRLIK2*marka_C(p4,4)+AGIRLIK3*marka_C(p5,5); % Secim Skor Puani 100 uzerinden hepsi
p1=p1+1;
p3=p3+1;
p4=p4+1;
p5=p5+1;
p6=p6+1;
end
p1=p1-1
p2=p2+1;
end