Skip to main content
. 2021 Aug 5;21(16):5288. doi: 10.3390/s21165288
Algorithm 5: Ali et al. [7]

Step 1: Initialize xi,vi for i=1,2,,S

        and set pi=xi

Step 2: Find j=i|i=1,2,,SandJ(pi)min

        Particle i best: JminiJ(pi)

        Global best: pgpj and JminJ(pj)

Step 3: for each particle i do

                Update xi,vi (47)

                Calculate J(xi) (45)

                if J(xi)<Jmini

                   JminiJ(xi) and pixi

                   if J(xi)<Jmin

                       JminJ(xi) and pgxi

Step 4: Repeat Step 3 until an exit condition is met

Step 5: Extract T and h from pg (48)