Dynamic Multi-Swarm Differential Learning Quantum Bird Swarm Algorithm and Its Application in Random Forest Classification Model
Algorithm
1: DMSDL-QBSA.
Variable setting: number of iterations:, bird positions: , local optimum: , global optimal position:, global optimum:,and fitness of sub-swarm optimal position: ;
Input: population size: , dimension’s size: , number of function evaluations:, the time interval of each bird flight behavior: , the probability of foraging behavior: , constant parameter: ,,,,,, and contraction expansion factor: ;
Output: global optimal position: , fitness of global optimal position: ;
(1)
Begin
(2)
Initialize the positions of N birds using equations (16)-(17): ;
(3)
Calculated fitness: ; set to be and find ;
(4)
Whiledo
(5)
/∗ Dynamic sub-swarm∗/
(6)
Regroup and of the sub-swarms randomly;
(7)
Sort the and refine the first best ;
(8)
update the corresponding ;
(9)
/∗Differential learning scheme∗/
(10)
For
(11)
Construct using DMS-BSA
(12)
Differential evolution: construct using equations (9)-(10);