2008-01-10 15:27:28 +01:00
|
|
|
function steady()
|
|
|
|
|
|
|
|
% function steady()
|
2008-01-10 15:34:44 +01:00
|
|
|
% computes and prints the steady state calculations
|
2008-01-10 15:27:28 +01:00
|
|
|
%
|
|
|
|
% INPUTS
|
|
|
|
% none
|
|
|
|
%
|
|
|
|
% OUTPUTS
|
|
|
|
% none
|
2005-02-18 20:54:39 +01:00
|
|
|
%
|
2008-01-10 15:27:28 +01:00
|
|
|
% SPECIAL REQUIREMENTS
|
|
|
|
% none
|
|
|
|
%
|
|
|
|
% part of DYNARE, copyright Dynare Team (2001-2007)
|
|
|
|
% Gnu Public License.
|
|
|
|
|
2005-02-18 20:54:39 +01:00
|
|
|
|
|
|
|
global M_ oo_ options_ ys0_
|
|
|
|
|
2006-06-02 09:42:00 +02:00
|
|
|
options_ = set_default_option(options_,'jacobian_flag',1);
|
2006-07-17 10:47:30 +02:00
|
|
|
options_ = set_default_option(options_,'steadystate_flag',0);
|
2006-07-26 10:32:05 +02:00
|
|
|
if exist([M_.fname '_steadystate.m'])
|
2006-07-17 10:47:30 +02:00
|
|
|
options_.steadystate_flag = 1;
|
|
|
|
end
|
|
|
|
|
2005-02-18 20:54:39 +01:00
|
|
|
steady_;
|
|
|
|
|
|
|
|
disp(' ')
|
|
|
|
disp('STEADY-STATE RESULTS:')
|
|
|
|
disp(' ')
|
2005-09-11 16:20:10 +02:00
|
|
|
endo_names = M_.endo_names;
|
|
|
|
steady_state = oo_.steady_state;
|
2005-02-18 20:54:39 +01:00
|
|
|
for i=1:size(oo_.steady_state,1)
|
2005-09-11 16:20:10 +02:00
|
|
|
disp(sprintf('%s \t\t %g',endo_names(i,:),steady_state(i)));
|
2005-02-18 20:54:39 +01:00
|
|
|
end
|
|
|
|
|
2008-02-11 15:42:46 +01:00
|
|
|
%%% Unless I'm wrong, this is (should be?) done in make_y_.m
|
|
|
|
% $$$ if isempty(ys0_)
|
|
|
|
% $$$ oo_.endo_simul(:,1:M_.maximum_lag) = oo_.steady_state * ones(1, M_.maximum_lag);
|
|
|
|
% $$$ else
|
|
|
|
% $$$ options_ =set_default_option(options_,'periods',1);
|
|
|
|
% $$$ oo_.endo_simul(:,M_.maximum_lag+1:M_.maximum_lag+options_.periods+ ...
|
|
|
|
% $$$ M_.maximum_lead) = oo_.steady_state * ones(1,options_.periods+M_.maximum_lead);
|
|
|
|
% $$$ end
|