Constraint checker can miss negative-consumption roots that satisfy the extended FOCs

Abierto
#1,197 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
43/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start by reading the constraint checker and the initial-cohort root-finding code involved in the extended FOCs; the issue does not name specific files or tests. Trace which consumption object the checker validates versus the one that can become negative, and use the failing scenario from the anchoring work to verify that infeasible roots are rejected. Done means negative-consumption roots no longer pass the constraint check.

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

Descripción

Splitting this out from #1189 at @marcelolafleur's suggestion.

While working on initial-wealth anchoring in #1189, @marcelolafleur found that when the anchor is updated inside the outer loop, the initial cohorts' root-finding can land on infeasible negative-consumption solutions that nonetheless pass the constraint check. From the PR description:

rescaling the households' initial wealth between outer-loop iterations -- even damped -- drives the initial cohorts' root-finding into infeasible negative-consumption roots that satisfy the extended FOCs and pass the constraint checker.

The gist: a root can satisfy the extended FOCs while implying negative consumption, and the constraint checker watches a different consumption object than the one that goes negative, so these roots are not caught. That means an infeasible solution can slip through silently.

This came up as a side effect of the anchoring work rather than something #1189 needs to fix, but it seems worth a dedicated look. @marcelolafleur offered to add more detail here.

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.