Relax assumption on government consumption good production

未关闭
#985 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@jdebacker 已经在做这个了。

开始于 2026年8月3日。

  • #1192 来自 @jdebacker —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
python
领域
backend

调研方向

The payload names no files or tests. Start with the linked pull request #1192 to see whether the work is already in progress, then find where government consumption G enters the model's budget constraint and the price of consumption goods. Done means government demand is split across sectors using a fixed-coefficient vector pi_gov, the government price p_gov is the weighted sum of sector prices, and the budget constraint uses p_gov times G.

由索引模型根据 Issue 内容生成。

描述

enhancement

We currently assume that goods/services making up government consumption expenditures are produced from just one industry (namely, industry $M$).

However, given data from an input/output table, it would be trivial to find demand for output from any sector $m$ that results from gov't consumption expenditures.

Analogous to how we model differentiated consumption goods, we can have a unit of gov't expenditures be made up of outputs from different sectors using a fixed-coefficient matrix. E.g., demand for industry $m$ output from gov't consumption will be given as:

$$
G_{m,t} = \pi_{gov, m} G_{t}
$$

where $\pi_{gov, m}$ is the fraction of a unit of gov't spending that comes from industry $m$.

The price of a unit of gov't consumption will then be:

$$
p_{gov,t} = \sum_{m=1}^M \pi_{gov, m} p_{m}
$$

Government spending in the government's budget constraint, currently $G_{t}$ will be replaced by $p_{gov,t}G_{t}$ since this change will mean that gov't expenditures are not only on the numeraire good (which is the current assumption in OG-Core).

主要语言
Python
星标
85
派生
153
平均合并
1 天 19 小时
30 天内合并 PR
19

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PSLmodels/OG-Core 的其他 Issue

查看 PSLmodels/OG-Core 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。