Nowadays, there is a need for charging electric vehicles (EVs) wirelessly, since it provides a more convenient, reliable, and safer charging option for the EV customers. A wireless charging system using a double-sided LCC compensation topology is proven to be highly efficient; however, the large volume induced by the compensation coils is a drawback. Endocrine links are more useful in transmitting power wirelessly than other links. These links are used in the transmission of low and medium power. In this paper, by analyzing the equivalent circuit of a WPT power transmission system, the optimal value of the inductance was formulated to increase the yield. This can have other applications. In order to neutralize the reactive losses, the series resonance is used in both in primary and secondary sections, among which the lower quantities of series inductors were selected from the initial values to increase the efficiency and power. Furthermore, it is possible to optimize these values using suitable optimization methods. In this study, the PSO algorithm was used for this purpose.