Skip to main content
. 2026 May 1;11(5):309. doi: 10.3390/biomimetics11050309
Algorithm 1 BKA
Begin
Step 1. Initialize BKA population Xi (i=1,2,…,n)
Step 2. Corroborate fitness of each black-winged kite
    Retrieve Xbest and Fbest
Step 3. while (t<T) do
     for each black-winged kite do
     /*Meticulous attacking phase*/
       if p<r
        Recalibrate the attacking location via Equation (5)
          yt+1i,j=yti,j+n1+sinr×yti,j
       else if do
        Recalibrate attacking location via Equation (5)
         yt+1i,j=yti,j+n×2r−1×yti,j
       end if
     /*Swarm migration phase*/
       if Fi<Fri
        Recalibrate migration location via Equation (7)
         yt+1i,j=yti,j+C0,1×yti,j−Ltj
       else if do
        Recalibrate migration location via Equation (7)
         yt+1i,j=yti,j+C0,1×Ltj−m×yti,j
       end if
     /* Handpick the fittest individual*/
       if yt+1i,j<Ltj
         Xbest=yt+1i,j,Fbest=fyt+1i,j
       else if do
         Xbest=Ltj,Fbest=fLtj
       end if
     Enforce boundary constraints by detecting and correcting violations
     Corroborate fitness of each black-winged kite
     Recalibrate Xbest if there is a superior black-winged kite
     end for
     t=t+1
    end while
    Retrieve Xbest and Fbest
End