use fsolve to find steady state values
Posted: Sat Jul 02, 2016 7:49 am
Hi:
I am replicating a paper but i have trouble with steady state values.firstly,I use fsolve to get steady state values in Matlab,then log-linearizing around the steady stateļ¼and use dynare to solve model.
How to deal with the following problems ?
1) fsolve can't converge to a solution x.(exitflag=0 not 1), the the squared 2-norm of the residual is 10e-5 ,if i can't use the "approximate steady state value".
2) how to limit the range of values ,eg. i want to get a positive value,but fsolve return a negative value.
I am replicating a paper but i have trouble with steady state values.firstly,I use fsolve to get steady state values in Matlab,then log-linearizing around the steady stateļ¼and use dynare to solve model.
How to deal with the following problems ?
1) fsolve can't converge to a solution x.(exitflag=0 not 1), the the squared 2-norm of the residual is 10e-5 ,if i can't use the "approximate steady state value".
2) how to limit the range of values ,eg. i want to get a positive value,but fsolve return a negative value.