Skip to content
Snippets Groups Projects
Commit 3fe758c2 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Cosmetic change in doc headers.

parent 8f53be2a
Branches
Tags
No related merge requests found
function [eigenvalues_,result,info] = check(M, options, oo) function [eigenvalues_,result,info] = check(M, options, oo)
% Checks determinacy conditions by computing the generalized eigenvalues.
%@info: % Checks determinacy conditions by computing the generalized eigenvalues.
%! @deftypefn {Function File} {[result,info] =} check (@var{M},@var{options},@var{oo}) %
%! @anchor{check} % INPUTS
%! @sp 1 % - M [structure] Matlab's structure describing the model (M_).
%! Checks determinacy conditions by computing the generalized eigenvalues. % - options [structure] Matlab's structure describing the current options (options_).
%! @sp 2 % - oo [structure] Matlab's structure containing the results (oo_).
%! @strong{Inputs} %
%! @sp 1 % OUTPUTS
%! @table @ @var % - eigenvalues_ [double] vector, eigenvalues.
%! @item M % - result [integer] scalar, equal to 1 if Blanchard and Kahn conditions are satisfied, zero otherwise.
%! Matlab's structure describing the model (initialized by dynare). % - info [integer] scalar or vector, error code as returned by resol routine.
%! @item options
%! Matlab's structure describing the options (initialized by dynare).
%! @item oo
%! Matlab's structure gathering the results (initialized by dynare).
%! @end table
%! @sp 2
%! @strong{Outputs}
%! @sp 1
%! @table @ @var
%! @item eigenvalues_
%! Eigenvalues of the model.
%! @item result
%! Integer scalar equal to one (BK conditions are satisfied) or zero (otherwise).
%! @item info
%! Integer scalar, error code as returned by @ref{resol}.
%! @end table
%! @sp 2
%! @strong{This function is called by:}
%! @sp 1
%! @ref{smm_objective}
%! @sp 2
%! @strong{This function calls:}
%! @sp 1
%! @ref{resol}
%! None.
%! @end deftypefn
%@eod:
% Copyright (C) 2001-2014 Dynare Team % Copyright (C) 2001-2018 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
......
function [dr, info, M, options, oo] = resol(check_flag, M, options, oo) function [dr, info, M, options, oo] = resol(check_flag, M, options, oo)
%@info: % Computes the perturbation based decision rules of the DSGE model (orders 1 to 3)
%! @deftypefn {Function File} {[@var{dr},@var{info},@var{M},@var{options},@var{oo}] =} resol (@var{check_flag},@var{M},@var{options},@var{oo}) %
%! @anchor{resol} % INPUTS
%! @sp 1 % - check_flag [integer] scalar, equal to 0 if all the approximation is required, equal to 1 if only the eigenvalues are to be computed.
%! Computes the perturbation-based decisions rules of the DSGE model (orders 1 to 3). % - M [structure] Matlab's structure describing the model (M_).
%! @sp 2 % - options [structure] Matlab's structure describing the current options (options_).
%! @strong{Inputs} % - oo [structure] Matlab's structure containing the results (oo_).
%! @sp 1 %
%! @table @ @var % OUTPUTS
%! @item check_flag % - dr [structure] Reduced form model.
%! Integer scalar, equal to 0 if all the approximation is required, positive if only the eigenvalues are to be computed. % - info [integer] scalar or vector, error code.
%! @item M % - M [structure] Matlab's structure describing the model (M_).
%! Matlab's structure describing the model (initialized by @code{dynare}). % - options [structure] Matlab's structure describing the current options (options_).
%! @item options % - oo [structure] Matlab's structure containing the results (oo_).
%! Matlab's structure describing the options (initialized by @code{dynare}). %
%! @item oo % REMARKS
%! Matlab's structure gathering the results (initialized by @code{dynare}). % Possible values for the error codes are:
%! @end table %
%! @sp 2 % info(1)=0 -> No error.
%! @strong{Outputs} % info(1)=1 -> The model doesn't determine the current variables uniquely.
%! @sp 1 % info(1)=2 -> MJDGGES returned an error code.
%! @table @ @var % info(1)=3 -> Blanchard & Kahn conditions are not satisfied: no stable equilibrium.
%! @item dr % info(1)=4 -> Blanchard & Kahn conditions are not satisfied: indeterminacy.
%! Matlab's structure describing the reduced form solution of the model. % info(1)=5 -> Blanchard & Kahn conditions are not satisfied: indeterminacy due to rank failure.
%! @item info % info(1)=6 -> The jacobian evaluated at the deterministic steady state is complex.
%! Integer scalar, error code. % info(1)=19 -> The steadystate routine has thrown an exception (inconsistent deep parameters).
%! @sp 1 % info(1)=20 -> Cannot find the steady state, info(2) contains the sum of square residuals (of the static equations).
%! @table @ @code % info(1)=21 -> The steady state is complex, info(2) contains the sum of square of imaginary parts of the steady state.
%! @item info==0 % info(1)=22 -> The steady has NaNs.
%! No error. % info(1)=23 -> M_.params has been updated in the steadystate routine and has complex valued scalars.
%! @item info==1 % info(1)=24 -> M_.params has been updated in the steadystate routine and has some NaNs.
%! The model doesn't determine the current variables uniquely. % info(1)=30 -> Ergodic variance can't be computed.
%! @item info==2
%! MJDGGES returned an error code.
%! @item info==3
%! Blanchard & Kahn conditions are not satisfied: no stable equilibrium.
%! @item info==4
%! Blanchard & Kahn conditions are not satisfied: indeterminacy.
%! @item info==5
%! Blanchard & Kahn conditions are not satisfied: indeterminacy due to rank failure.
%! @item info==6
%! The jacobian evaluated at the deterministic steady state is complex.
%! @item info==19
%! The steadystate routine has thrown an exception (inconsistent deep parameters).
%! @item info==20
%! Cannot find the steady state, info(2) contains the sum of square residuals (of the static equations).
%! @item info==21
%! The steady state is complex, info(2) contains the sum of square of imaginary parts of the steady state.
%! @item info==22
%! The steady has NaNs.
%! @item info==23
%! M_.params has been updated in the steadystate routine and has complex valued scalars.
%! @item info==24
%! M_.params has been updated in the steadystate routine and has some NaNs.
%! @item info==30
%! Ergodic variance can't be computed.
%! @end table
%! @sp 1
%! @item M
%! Matlab's structure describing the model (initialized by @code{dynare}).
%! @item options
%! Matlab's structure describing the options (initialized by @code{dynare}).
%! @item oo
%! Matlab's structure gathering the results (initialized by @code{dynare}).
%! @end table
%! @sp 2
%! @strong{This function is called by:}
%! @sp 1
%! @ref{dynare_estimation_init}
%! @sp 2
%! @strong{This function calls:}
%! @sp 1
%! None.
%! @end deftypefn
%@eod:
% Copyright (C) 2001-2018 Dynare Team % Copyright (C) 2001-2018 Dynare Team
% %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment