Research Article
Adaptive Electromagnetic Field Optimization Algorithm for the Solar Cell Parameter Identification Problem
Algorithm 2 : Candidate solution generation
(1): set r = random real number within the range of (0,1). | (2): for j = 1 to D do //for each electromagnet of the candidate | (3): set p = randomly selected index of the EMP from the positive field. | (4): set n = randomly selected index of the EMP from the negative field. | (5): set k = randomly selected index of the EMP from the neutral field. | (6): if rand < Ps_rate then | (7): set v(j) as the electromagnet of the positive EMP (xp). | (8): else | (9): set v(j) using the Eqn. (12) //Use r as rand in Eqn. (12). | (10): end if | (11): Randomly Update v(j) if it is outside the boundary. | (12): end for |
|
Algorithm 2 : Candidate solution generation |