View full-text article in PMC Sensors (Basel). 2023 Jun 25;23(13):5881. doi: 10.3390/s23135881 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 4 EHO main steps Define Ne and NGmax t: = 1 while (t≤NGmax) and (solution not yet found) do for ci: = 1,⋯,Nclan do for j: = 1,⋯,Nci do Update xci,j Generate xnew,ci,j=xci,j+α·(xbest,ci−xci,j)·r if xci,j=xbest,ci then Update xci,j Generate xnew,ci,j Compute xcenter,ci=1nci·∑j=1nci(xci,j) Generate xnew,ci,j=β·xcenter,ci end if end for end for for ci: = 1,⋯,Nclan do Replace worst solution xworst,ci=xmin+(xmax−xmin+1)·rand end for t: = t + 1 end while Return best solution