The study of power system planning, security, and control is crucial for determining optimal power flow (OPF), a highly nonlinear complicated issue. With the rapid use of renewable energy sources (RES), the power system is changing. The functioning of the power system remains complex when they are connected to the grid alongside traditional generators. The Optimal Power Flow control approach is intended to be used with these systems to execute energy management during RES and load demand fluctuations. In power systems, there are many objectives for better control, those are operating costs, emissions, active power losses, voltage collision, and stability. This review paper describes various linear, nonlinear, and metaheuristic techniques applicable to the power system networks accessible in the literature. The conventional optimization algorithms have been reintroduced while the power systems have been heavily predisposed over the last few years. The most crucial technical, adaptive and economic tool in this context is optimal power flow. In this paper, we compare OPF approaches related to objective functions. That aside from computational power, case study network, and publication dates for these algorithms are described. Finally, we will address some of the basic challenges that arise from the new OPF approach to the modern grid. Mainly, optimization techniques are compared in terms of reliability, accurateness, faster convergence, and applicability for single and multiple objective functions. Initially, the paper discusses on type of networks like AC or DC, constraints and its objectives on OPF, mathematical and Nonlinear programming (NLP) problems, various convex relaxation algorithms, and different optimization techniques reviewed. The heuristic and meta-heuristic algorithms like genetic algorithm, teaching-learning algorithm, honeybee mating algorithm, bat algorithm, imperialistic competition algorithm, black hole algorithm, artificial immune system algorithm, clonal selection algorithm, symbiotic organism algorithm, Jaya algorithm, invasive weed optimization algorithm were compared for various operational parameters. In this work, OPF with single or multi-objective functions like voltage stability, voltage deviation, emission, cost, and losses, consisting of conventional and renewable energy resources were considered. Additionally, Pseudo-code algorithms were presented for some recently evolved algorithms for ease of understanding of the readers.