Research Article

Semantic Integration of Sensor Knowledge on Artificial Internet of Things

Algorithm 2.

Compact particle Swarm Optimization algorithm.
1:
2: set generation
3: set all elements in as 0.5;
4: generate one particle through to initialize the local best particle and global best particle
5:
6: while
7: generate a new particle through
8:
9: ;
10: 
11: if
12:  
13: end if
14: 
15: 
16: 
17:  
18: end if
19: 
20: for
21:  ifthen
22:   
23:  else
24:   
25:  end if
26: end for
27: 
28: end while
29: return