Professional Documents
Culture Documents
Working Example (1)
Working Example (1)
Precedence Relation
𝑓
∑𝑀
𝑓=1 𝛿𝑖𝑗
𝜂𝑖𝑗 =
𝑀
P(r1) =( 𝜂𝑖𝑗 (r1,r2)+ 𝜂𝑖𝑗 (r1,r3)+ 𝜂𝑖𝑗 (r1,r4)+ 𝜂𝑖𝑗 (𝑟1, 𝑟5) +…+𝜂𝑖𝑗 (𝑟1, 𝑟10))/10
𝜂𝑖𝑗 (r1,r3)
𝜂𝑖𝑗 (r1,r4)
P(r1) =( 1.0 + 0.2 +0.4 +0.4 +0.4 +0.4 +0.4 +0.2 +0.2)/9 = 3.6/ 9 = 0.4
∑𝑁
𝑗=1 𝜌𝑖𝑗
𝑃𝑚(𝑖 ) =
𝑁
1, 𝑖𝑓 𝑟𝑖 𝑖𝑠 𝑝𝑟𝑒𝑐𝑒𝑑𝑒 𝑟𝑗
𝜌𝑖𝑗 = {
0, 𝑂𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Precedence matrix
1 0 1 0 0 0 0 0 0 0 0 1 0.1
2 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 1 0 1 0 1 0 3 0.3
5 0 0 0 0 0 0 0 0 0 0 0 0
6 0 0 0 0 0 0 1 0 0 0 1 0.1
7 0 0 0 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 0 0 1 1 0.1
9 0 0 0 0 0 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0 0 0 0 0 0
Else
Weight-2= 0
For Rule-2
Weight-1 = 0.325
Weight-2 = 0
Rules weight
Weight-1 r4 r8 r6 r7 r5 r1 r3 r2 r9 r10
Weight-2 r4 r8 r6 r1 r2 r3 r5 r7 r9 r10
𝜓 = ∑ 𝑅𝐼𝑖 𝜔𝑖
𝑖=1
Weight-2 r4 r8 r6 r1 r2 r3 r5 r7 r9 r10
These sorted rule indexes are given to the input as the PSO for rule optimization.