This document describes a study that uses a genetic algorithm to solve the optimal power flow problem. The optimal power flow problem aims to minimize operating costs in a power system by optimizing generator outputs while meeting demand and constraints. The study develops a genetic algorithm approach and compares its results and computation time to traditional derivative-based methods on some example power flow cases. It finds that the genetic algorithm approach produces nearly equivalent results to traditional methods, but requires significantly less computation time to solve the optimal power flow problem, especially as more constraints are added.