This document provides a review of evolutionary algorithms that have been used to optimize wireless sensor networks (WSNs). It begins with background on WSNs and discusses common issues like energy efficiency. It then reviews heuristic and metaheuristic approaches that have been used for clustering and routing in WSNs. The main part of the document focuses on four commonly used evolutionary algorithms - genetic algorithms, particle swarm optimization, harmony search algorithm, and flower pollination algorithm. For each algorithm, it provides an overview and details on how the algorithm works and pseudo-code. It concludes that these nature-inspired metaheuristic techniques can help optimize challenges in WSNs like cluster formation and energy consumption better than classical algorithms.