Runtime Error in Optimization Algos

Hi, I just completed the coding for the Performance Of Different Algorithms. However, i am getting the following error:
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:23: RuntimeWarning: overflow encountered in exp

Kindly help me out here.

https://colab.research.google.com/drive/17xGSh5sNyy_nPRCiswroWTRkzh0j2law?usp=sharing

Check this thread for resolving overflow issue: