Skip to main content
. 2025 Apr 25;25(9):2730. doi: 10.3390/s25092730
Algorithm 1: The MSCSO
Input: Population size N, Max iterations Tmax, Search space [lb, ub]
Output: Global optimal solution Xglobal
  1.  Initialize the chaotic Cat Map individual Xcat;

  2. The opposition-based learning individual Xobl, the merged population X;

  3.  The Selected Top Xglobal

  4.  while t<Tmaxdo

  5.               if t<0.75Tmaxthen

  6.             XnewX+0.1Levyβublb

  7.             Update X via Metropolis criterion with T=T00.95t

  8.             end

  9.               else if t0.75Tmaxthen

  10.             Compute diversity metric div=1NXiμ 

  11.                     for each individual do

  12.              if rand<0.5+0.2(div/max(div))then

  13.              XnewX+δ,δ=0.05ublb1t/TmaxN0,1

  14.                              end

  15.              else if rand0.5+0.2(div/max(div))then

  16.              Update velocity VwV+c1r1XglobalX+c2r2μX

  17.              XnewX+0.1V

  18.                              end

  19.                   end

  20.            end

  21.              Perform mutation: XmutXelite+σmutN0,1,σmut=0.05(ublb(1t/Tmax

  22.              Replace worst Nelite individuals with Xmut

  23.               XglobalargminfX

  24.               tt+1

  25. end