Research Article

A Novel Modified Sparrow Search Algorithm with Application in Side Lobe Level Reduction of Linear Antenna Array

Algorithm 1

Improved boundary constraint.
Input: (Position that overstep the boundary), Ub (Upper boundary), Lb (Lower boundary),
    Xbest (Global optimal position), Xgood (Current optimal position)
Output: (The new position)
1: if < Lb || X i,j > Ubthen
2:   temp = Xbest + | Xbest - Xgoodrand(1);
3:   ifLbtempUbthen
4:     = temp;
5:   else
6:     = Xgood;
7:   end if
8: end if
9: return