Skip to main content
. 2019 Jul 14;19(14):3110. doi: 10.3390/s19143110
Algorithm 1 Pseudocode of the EA.
 1: Define objective function.
 2: Initialize population of epicenters.
 3: Randomly initialize xi.
 4: Initialize vi and ρi.
 5: Define μ and λ.
 6: Obtain and rank the first fitness values.
 7: Initialize xibest and xbest with the fitness values.
 8: Define Sr, and the Max. it.
 9: while (it. < Max. it.) do
10: Randomly calculate ρi.
11: vpμρi
12: vsλ+2μρi
13: if (∣xibestSr) then
14:  vivs
15: else
16:  vivp
17: end if
18: Randomly select positive or negative vi.
19: xitxit1+vi
20: if (rand >vp) then
21:  xitxbest+Expμ(s)
22: end if
23: Constrain xi if needed.
24: Obtain the new fitness values.
25: Actualize xbest and xibest
26: it.← it.++
27: end while
28: Postprocessing and visualization of results.