-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMIFBO6.m
48 lines (38 loc) · 1.13 KB
/
MIFBO6.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
%% This script identifies possible attribute level orderings
%% based on tournament data
%% Please Edit lines 6, 16-35
clear all; close all; format long;
x=xlsread('ranks');
ID='FBO6'; %% Specify Organization Being Analyzed
%%eliminate the infeasible rankings based on total unacceptable levels
for i = 1:1296
if x(i,4) == 4 | x(i,4)==6
x(i,5) = 0
end
end
%% List of ranks
S=[1 2 3 4 5 6]; %% all possible rank orders allowed
P=[1 2 5]; % 1<2
Q=[3 4 6]; % 2<1
R=[2 5 6]; % 3<2
T=[4 5 6]; % 3<1
U=[1 2 3]; % 1<3
V=[1 3 4]; % 2<3
%% Tournament Outcomes
x = ruleOut(x,Q,S,S,S); %R16 Left Bracket
x = ruleOut(x,Q,S,S,S);
x = ruleOut(x,S,Q,U,S);
x = ruleOut(x,S,P,P,S);
%x = ruleOut(x,S,V,S,R); %R16 Right Bracket
%x = ruleOut(x,T,P,S,S);
%x = ruleOut(x,P,V,Q,S);
%x = ruleOut(x,S,U,U,R);
x = ruleOut(x,S,R,U,S); %R8 Left Bracket
x = ruleOut(x,R,Q,S,S);
x = ruleOut(x,S,P,P,S); %R8 Right Bracket
x = ruleOut(x,S,U,V,S);
x = ruleOut(x,R,V,S,S); %R4 Left Bracket
x = ruleOut(x,U,S,P,S); %R4 Right Bracket
x = ruleOut(x,T,Q,S,S); % R2
x=processCount(x);
xlswrite('MIRanking.xlsx',x,ID);