check only returns eigenvalues, not the whole oo_

time-shift
Sébastien Villemot 2013-01-15 16:45:15 +01:00
parent 42c9115131
commit eed3651d6e
3 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
function [oo,result,info] = check(M, options, oo)
function [eigenvalues_,result,info] = check(M, options, oo)
% Checks determinacy conditions by computing the generalized eigenvalues.
%@info:
@ -21,8 +21,8 @@ function [oo,result,info] = check(M, options, oo)
%! @strong{Outputs}
%! @sp 1
%! @table @ @var
%! @item oo
%! Matlab's structure gathering the results (initialized by dynare).
%! @item eigenvalues_
%! Eigenvalues of the model.
%! @item result
%! Integer scalar equal to one (BK conditions are satisfied) or zero (otherwise).
%! @item info
@ -72,8 +72,6 @@ oo.dr=set_state_space(oo.dr,M,options);
[dr,info,M,options,oo] = resol(1,M,options,oo);
oo.dr = dr;
if info(1) ~= 0 && info(1) ~= 3 && info(1) ~= 4
print_info(info, options.noprint);
end

View File

@ -75,7 +75,7 @@ save('estimated_parameters.mat','xparams');
% Check for local determinacy of the deterministic steady state.
noprint = options_.noprint; options_.noprint = 1;
[oo_,local_determinacy_and_stability,info] = check(M_,options_,oo_); options_.noprint = noprint;
[eigval,local_determinacy_and_stability,info] = check(M_,options_,oo_); options_.noprint = noprint;
if ~local_determinacy_and_stability
r = priorObjectiveValue * (1+info(2));
flag = 0;

View File

@ -59,7 +59,7 @@ void
CheckStatement::writeOutput(ostream &output, const string &basename) const
{
options_list.writeOutput(output);
output << "oo_ = check(M_,options_,oo_);" << endl;
output << "oo_.dr.eigval = check(M_,options_,oo_);" << endl;
}
void