matthieugomez / EconPDEs.jl

Solve non-linear HJB equations.
Other
123 stars 41 forks source link

Allow a way to specify different boundary conditions #7

Closed matthieugomez closed 6 years ago

matthieugomez commented 6 years ago

Right now, I assume that derivative of value function at boundary is zero. But it does not have to be. The method works for any value of the derivative at the boundary (because it is enough to pinpoint value of function outside the grid).

In other words, I should allow users to input their own conditions about derivative at boundary. Would be useful for investment problem of firm in Bolton, Chen, Wang.

Something like a OrderedDict or a tuple

(Vμ = [0.0, 0.0])
(Vμ = zeros(30), Vσ = zeros(10))