Algorithm 4: Competency-Based Learning in ETLBOCBL-CNN’s Modified Teacher Phase |
Inputs: , , , , , , , , , , ,
|
01: |
Initialize offspring population set as ;
|
02: |
Calculate the population mean using Algorithm 3; |
03: |
Sort all solution members of ascendingly by referring to their fitness values ; |
04: |
Determine the group index g assigned to of all sorted learners using Equations (9) and (10); |
05: |
for to do
|
06: |
Initialize the n-th offspring learner as ; |
07: |
if then
|
08: |
Randomly select two better group indices of where |
09: |
Randomly select two predominant learners with the population indices represented as |
|
and |
10: |
Calculate using Equation (11); |
11: |
else if then
|
12: |
Randomly select two predominant learners from the first group (i.e., ) with the population |
|
indices of and where ; |
13: |
Compare the fitness values of two predominant learners, i.e., and ; |
14: |
Calculate using Equation (12); |
15: |
else if then
|
16: |
Calculate using Equation (13); |
17: |
end if
|
18: |
for to D do
|
19: |
if with then
|
20: |
; |
21: |
end if
|
22: |
end for
|
23: |
Perform fitness evaluation on to obtain using Algorithm 2; |
24: |
if then
|
25: |
, |
26: |
end if
|
27: |
; |
28: |
end for |
Outputs: , ,
|