带分数的乳胶伪代码

带分数的乳胶伪代码

我尝试在 Overleaf 中编写这个伪代码 - 无法进行分数运算(第 15 行) 在此处输入图片描述

\begin{algorithm} \caption{Učící mechanismus obcí}
\begin{algorithmic}[1]
\While {Obce ještě nedokonvergovaly}
  \State $t=t+1$
  \ForEach {$\ivar{KNIES}_p \in \tvar{Population}$}
    \For{$X_i\in\tvar{\textit{Přiřazené body}}$}
      \State $\ivar{KNIES}_p$.\quad
             \textbf{Learn}($X_i$, $\beta_t = \frac{t\beta_T}{T}$)
    \EndFor
  \EndForEach
  \If{$\ivar{KNIES_p} > \ivar{KNIES}$}
    \State $\ivar{KNIES}(t) = \ivar{KNIES}_p$
  \EndIf
  \If{$\ivar{KNIES_p} < \ivar{KNIES}$}
  \State $\ivar{KNIES}(t) = \ivar{KNIES}_p$
  \EndIf
  \State $\ivar{KNIES}(t) = \ivar{KNIES}(t)$
  \EndFor

\EndWhile
\end{algorithmic}
\end{algorithm}

相关内容