Research Article

A New Dual-Mode GEP Prediction Algorithm Based on Irregularity and Similar Period

Algorithm 1

IPM.
Begin:
(1) CHROMOSME [ ] ⟵ produce stochastic original population;
(2)While (True)
(3)  While (True)
(4)   BEST ⟵ find the best one from CHROMOSME [ ];
(5)   BEST_FIT ⟵ calculate fitness of BEST;
(6)   If (BEST_FIT ≥ MAX_FIT) then
(7)     AVE_ERROR ⟵ calculate error of BEST;
(8)    If (AVE_ERROR ≤ LIMIT) then
(9)      Return BSET;
(10)    End if;
(11)    Else Break; //restart evolutionary model
(12)   End if;
(13)   SONS [ ] ⟵ produce empty population same as CHROMOSME [ ];
(14)   SONS [ ] ⟵ the top K best individuals; //retain dominant individuals
(15)   SONS [ ] ⟵ Roulette and Genetic manipulation of CHROMOSME [ ];
(16)   CHROMOSME [ ] ⟵ SONS [ ]; //new population
(17)  End While;
(18)End While;
End.