*Choose the Current Best as* (**Table 9**)

*if f x*<sup>1</sup> 1 <sup>&</sup>lt;*f gBest* ð Þ*then gBest* <sup>¼</sup> *<sup>x</sup>*<sup>1</sup> 1 *if f x*<sup>1</sup> 1 <sup>&</sup>lt;*f gBest* ð Þ *1.0512 < 1.3236 if f x*<sup>1</sup> 1 <sup>&</sup>lt;*f gBest* ð Þ *then gBest* ¼ 1*:*0512 *if f x*<sup>1</sup> 2 <sup>&</sup>lt; *f gBest* ð Þ *1.5695 < 1.3236 if f x*<sup>1</sup> 3 <sup>&</sup>lt;*f gBest* ð Þ *4.8866 < 1.3236 if f x*<sup>1</sup> 4 <sup>&</sup>lt;*f gBest* ð Þ *3.6716 < 1.3236 if f x*<sup>1</sup> 5 <sup>&</sup>lt;*f gBest* ð Þ *2.9504 < 1.3236 gBest = 1.0512 if f x<sup>t</sup> i* <sup>&</sup>lt;*f pBest* ð Þ *then pBest = xt i if f x*<sup>1</sup> 1 <sup>&</sup>lt;*f pBest* ð Þ *1.0512 < 1.9649 if f x*<sup>1</sup> 2 <sup>&</sup>lt; *f pBest* ð Þ *1.5695 < 1.3236 if f x*<sup>1</sup> 3 <sup>&</sup>lt;*f pBest* ð Þ *4.8866 < 2.2179 if f x*<sup>1</sup> 4 <sup>&</sup>lt;*f pBest* ð Þ *3.6716 < 2.9208 if f x*<sup>1</sup> 5 <sup>&</sup>lt;*f pBest* ð Þ *2.9504 < 2.2542* **STEP – 5: UPDATE ITERATION** (**Table 10**) *Update t = t + 1 = 2 t=2*


#### **Table 10.**

*Updated fitness value [5].*


**Table 11.** *OUTPUT gBest & x<sup>t</sup> <sup>i</sup> [5].*
