In this research, an alternative methodology is proposed for the location of Static VAR Compensators (SVC) in power systems, considering the reconfiguration of reactive power flows through the optimal switching of the transmission stage, which resembles the contingency restriction N-1 usually considered in transmission expansion planning. Based on this methodology, the contingency index was determined, which made it possible to determine which is the contingency that generates the greatest voltage degradation in the system. For the quantification of reactive flows, optimal AC power flows were used, which minimize the operating costs of the power system subject to transmission line switching restrictions, line charge-ability, voltages and node angles. To determine the node in which the compensation should be placed, the contingency index criterion was used, verifying the voltage profile in the nodes. The proposed methodology was tested in the IEEE test systems of 9, 14 nodes and large-scale systems of 200, 500 and 2000 bus-bars; to verify that the proposed methodology is adequate, the stability of the EPS was verified. Finally, the model allows satisfactorily to determine the node in which the SVC is implemented and its compensation value.