The energy for a specific configuration \( i \) is given by $$ \begin{equation*} E_i =-J\sum_{< kl>}^{N}s_ks_l. \end{equation*} $$