1: \begin{abstract}
2: The \ac{EM} features of \acp{RIS} fundamentally determine their
3: operating principles and performance. Motivated by these considerations,
4: we study a \ac{SISO} system in the presence of an \ac{RIS}, which
5: is characterized by a circuit-based \ac{EM}-compliant model. Specifically,
6: we model the RIS as a collection of thin wire dipoles controlled by
7: tunable load impedances, and we propose a gradient-based algorithm
8: for calculating the optimal impedances of the scattering elements
9: of the RIS in the presence of mutual coupling. Furthermore, we prove
10: the convergence of the proposed algorithm and derive its computational
11: complexity in terms of number of complex multiplications. Numerical
12: results show that the proposed algorithm provides better performance
13: than a benchmark algorithm and that it converges in a shorter amount
14: of time. \acresetall{}
15: \end{abstract}