EconForge / dolo.py

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

value_iteration bugs #206

Open sbenthall opened 4 years ago

sbenthall commented 4 years ago

The value_iteration solution algorithm has a couple of issues:

albop commented 4 years ago

First item is indeed a regression. There should be an argument dr0 (resp drv0), to be used as initial guess for the decision rule (resp the value function). I'm not sure about the second one. Right now, what is defined as a CartesianDomain is the set of boundaries for the endogenous spaces. But the domain for the domain we optimize on is always represented by two functions controls_ub and controls_lb. These can be specified in two ways: either by adding a controls_lb (resp ub) set of equations or by adding complementarity conditions to the arbitrage equations.

sbenthall commented 4 years ago

Oh, I apologize. I misunderstood the role of domain.

I see now why the upper and lower bounds on controls need to be dynamic.