2005-02-18 20:54:39 +01:00
|
|
|
% Copyright (C) 2001 Michel Juillard
|
|
|
|
%
|
|
|
|
function steady_()
|
|
|
|
|
2006-06-02 09:42:00 +02:00
|
|
|
global M_ oo_ it_ options_
|
2006-01-08 09:39:00 +01:00
|
|
|
|
|
|
|
if exist([M_.fname '_steadystate'])
|
2006-06-02 09:42:00 +02:00
|
|
|
[oo_.steady_state,check] = feval([M_.fname '_steadystate'],...
|
|
|
|
oo_.steady_state,...
|
|
|
|
[oo_.exo_steady_state; ...
|
|
|
|
oo_.exo_det_steady_state]);
|
2006-01-08 09:39:00 +01:00
|
|
|
else
|
2006-06-02 09:42:00 +02:00
|
|
|
[oo_.steady_state,check] = dynare_solve([M_.fname '_static'],...
|
|
|
|
oo_.steady_state,...
|
|
|
|
options_.jacobian_flag, ...
|
|
|
|
[oo_.exo_steady_state; ...
|
|
|
|
oo_.exo_det_steady_state]);
|
2006-01-08 09:39:00 +01:00
|
|
|
end
|
2005-02-18 20:54:39 +01:00
|
|
|
|
2006-01-08 09:39:00 +01:00
|
|
|
if check ~= 0
|
2005-02-18 20:54:39 +01:00
|
|
|
error('STEADY: convergence problems')
|
|
|
|
end
|
|
|
|
|
2006-01-12 11:21:20 +01:00
|
|
|
|