(1) Initialize the parameters of artificial fish, such as , , the number of exploratory,
  maximum number of iterations, and randomly generated fishes;
(2) Set bulletin board to record the current status of each fish, and select the optimal value;
(3) Implementation of prey behavior, swarm behavior and follow behavior;
(4) Optimal value in bulletin board is updated;
(5) If termination condition is satisfied, output the result; otherwise return to step 2.
Algorithm 3: Parameter optimization based on artificial fish swarm algorithm.