I'm interested in learning optimization methods and how we can implement them in a problem. I'm from Electrical Engineering so suggest me good resources.
I agree with Eylem Erdoğan especially if you want to use mathematical optimization methods. However, if you want to use nature inspired optimization algorithms, have a look at the book attached in the link. This book also consists of matlab codes for many nature inspired optimization algorithms which you can use modify according to your needs.