Review Article

Bus Dispatching Interval Optimization Based on Adaptive Bacteria Foraging Algorithm

Table 1

Pseudocode for dynamic self-adaptive strategy [17, 18].

(1) FOR (each bacterium i) IN PARALLEL
(2) IF (Criterion-1) then
(3) ;   // exploitation
(4) ;
(5) ELSE IF (Criterion-2) then
(6) ;    // exploration
(7) ;
(8) ELSE
(9) ;
(10) ;
(11) END IF
(12) END FOR IN PARALLEL

Where Criterion-2: exploration state; Criterion-1: exploitation state; : the current iterations; : default constants; : current run-length unit of the ith bacteria; : the desired precision in the current iteration of the ith bacteria; : the original run length unit; : the original precision.