Research Article

Towards the Novel Reasoning among Particles in PSO by the Use of RDF and SPARQL

Algorithm 1

Pseudocode of the classic PSO algorithm.
Input: PSO population of particles for .
Output: The best solution and its corresponding value .
(1) init_particles;
(2) ;
(3)while termination_condition_not_meet do
(4)for   to   do
(5)   = evaluate_the_new_solution( );
(6)   ;
(7)  if     then
(8)    ; // save the local best solution
(9)  end if
(10)   if     then
(11)     ; // save the global best solution
(12)   end if
(13)    = generate_new_solution( );
(14)  end for
(15)  end while