-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAhpTest.m
34 lines (28 loc) · 928 Bytes
/
AhpTest.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
clc
clf
clear
%%
CompMat = [ 1 3 5 5 9 1/5 5
0 1 5 5 7 1/3 7
0 0 1 1/5 1 1/9 1
0 0 0 1 5 1/3 3
0 0 0 0 1 1/9 1
0 0 0 0 0 1 9
0 0 0 0 0 0 1];
% CompMat = [ 1 3 4
% 0 1 3
% 0 0 1 ];
alternatives = [ 1 1 1 1 0 1 0
0 0 0 1 1 0 1];
alt = [ 1 1 1 1 0 1 0
0 0 0 1 1 0 1];
if ConsistencyAHP(CompMat)< 0.10
[weights CompMat fuzzyTFN] = FuzzyAHP(CompMat);
alt*weights'
[m n] = size(fuzzyTFN);
for i=1:m
fuzzyVector = [fuzzyTFN{i,1}];
plot(fuzzyVector,[0 1 0]);
hold on
end
end