[Retracted] Observation of Clinical Efficacy of Anisodamine and Chlorpromazine in the Treatment of Intractable Hiccup after Stroke
Algorithm 1
Pseudocode of the MPSO algorithm.
MPSO
Input:
Input parameters The total number of iterations maxlter; the particle space dimension n; the individual cognitive parameter; the social cognitive parameter C2; the group size K.
Output:
Global best position gBest
Proceeding:
1: Freely generate the initial n-dimensional velocity v and position x of the particle swarm
2: for ite=1:maxlter do;
3: Three: Update inertia weight W
4: Four: pu=1;k do
5: Five: Find the smallest individual optimal position as the global optimal position gBest
6: Update the velocity and position of each particle
7: End for
8: Find the smallest individual optimal position as the global optimal position gBest
9: If ite<maxlter then
10: Perturb the global optimal solution to generate a new global optimal solution gBest