EconForge / dolo.py

Economic modelling in python
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

"Cycles" in which the agents solve a different problem in each subperiod #207

Open sbenthall opened 4 years ago

sbenthall commented 4 years ago

(moved from https://github.com/EconForge/dolark/issues/12 )

A feature request: a syntax for writing problems with "cycles" in which the agents solve a different problem in each subperiod.

In these problems:

From @llorracc

A simple example that could be used to develop a syntax for this is the portfolio problem: "end-of-period" problem: Given assets $a$, figure out how to invest them in risky vs safe assets. Which involves constructing a marginal end-of-period-value function $v^{'}{t,1}$ "beginning-of-period" problem: Given end-of-period marginal value function, compute beginning-of-period optimal consumption. This yields $v^{'}{t,0}$

Further technical discussion here: https://www.econ2.jhu.edu/people/ccarroll/SolvingMicroDSOPs/

(originally discussed here: econ-ark/DARKolo#14 (comment) )

sbenthall commented 4 years ago

These kinds of problems are in these lecture notes, section 7 https://llorracc.github.io/SolvingMicroDSOPs/