This article applies the grey wolf optimizer and differential evolution (DE) algorithms to solve the optimal power flow (OPF) problem. Both algorithms are used to optimize single objective functions sequentially under the system constraints. Then, the DE algorithm is utilized to solve multi-objective OPF problems. The indicator of the static line stability index is incorporated into the OPF problem. The fuzzy-based Pareto front method is tested to find the best compromise point of multi-objective functions. The proposed algorithms are used to determine the optimal values of the continuous and discrete control variables. These algorithms are applied to the standard IEEE 30-bus and 118-bus systems with different scenarios. The simulation results are investigated and analyzed. The achieved results show the effectiveness of the proposed algorithms in comparison with the other recent heuristic algorithms in the literature.