Relax assumption on government consumption good production

Abierto
#985 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@jdebacker ya está trabajando en esto.

Desde el 3/8/2026.

  • #1192 de @jdebacker — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Python
Estrellas
85
Forks
153
Merge medio
1 d 19 h
PR fusionados (30 d)
19

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PSLmodels/OG-Core

Todos los issues de PSLmodels/OG-Core

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.