Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Consider formalization of this trick for solving for the KFE #21

Open
jlperla opened this issue Sep 21, 2017 · 0 comments
Open

Consider formalization of this trick for solving for the KFE #21

jlperla opened this issue Sep 21, 2017 · 0 comments

Comments

@jlperla
Copy link
Owner

jlperla commented Sep 21, 2017

From Ben:
Simply fix one element of the vector f, then solve the linear system (which is no longer singular) and the renormalize f afterwards. See e.g. this code snippet from http://www.princeton.edu/~moll/HACTproject/huggett_partialeq.m

AT = A';
b = zeros(2*I,1);

%need to fix one value, otherwise matrix is singular
i_fix = 1;
b(i_fix)=.1;
row = [zeros(1,i_fix-1),1,zeros(1,2*I-i_fix)];
AT(i_fix,:) = row;

%Solve linear system
gg = AT\b;
g_sum = gg'*ones(2*I,1)*da;
gg = gg./g_sum;

The question will be whether this approach can be generalized in a nonlinear setup.

@jlperla jlperla self-assigned this Sep 21, 2017
@jlperla jlperla removed their assignment Nov 1, 2017
@jlperla jlperla added this to the longrun milestone Dec 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant