我一直收到此代码的错误,有人可以帮我找出问题所在吗?
\begin{frame}
\frametitle{Set Up to NGM with an Infinitely-lived Consumer}
To solve the NGM model, consider an infinitely lived consumer
with an additively separable utility function that satisfies:
\begin{equation}
max_{\lbrace C_{t},L_{t},K_{t+1}\rbrace_{t=0}^{\infty}}
\sum_{t=1977}^{\infty} = \beta^{t-1977}
\lbrack \gamma log C_{t}+(1-\gamma ) log(N_{t} \overline{h}-L_{t})\rbrack \\
\text{s.t. (for all t=0,1,...):} \\
C_{t}+L_{t+1}-K_{t} = w_{t} L_{t} + (r_{t}-\delta)K_{t} \\
K_{1977}=\overline{K_{1977}}
\end{equation}
\end{frame}
谢谢!
答案1
您的代码的主要问题是您使用equation
环境来排版显示的几行数学材料。我建议您使用gather*
环境而不是equation
环境。
对消费者效用函数和约束最大化问题的阐述也有很多不足之处。例如,条件K_{1977}=\overline{K}_{1977}
是起始条件或初始条件,不需要——事实上,不应该—— 重复出现t=0,1,\dots
。而且,=
中间的符号\sum_{t=1977}^{\infty} = \beta^{t-1977}
不可能是正确的。
以下修改后的论述可能更易于读者理解:
\documentclass{beamer}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{frame}
\frametitle{NGM with an infinitely-lived consumer}
To solve the NGM model, consider an infinitely lived consumer
with an additively separable period utility function given by:
\[
\gamma \log C_{t}+(1-\gamma ) \log(N_{t} \bar{h}-L_{t})\,.
\]
Utility maximization is performed jointly over $C_t$, $L_t$, and $K_{t+1}$, $t=0,1,\dots$:
\begin{gather*}
\max_{\lbrace C_{t},L_{t},K_{t+1}\rbrace_{t=1977}^{\infty}}\quad
\sum_{t=1977}^{\infty} \beta^{t-1977}
\bigl[ \gamma \log C_{t}+(1-\gamma ) \log(N_{t} \bar{h}-L_{t})\bigr] \\
\intertext{such that $K_{1977}=\overline{K}_{1977}$ and, for all $t=0,1,...$}
C_{t}+L_{t+1}-K_{t} = w_{t} L_{t} + (r_{t}-\delta)K_{t} \,.
\end{gather*}
\end{frame}
\end{document}