Merge pull request #1445 from JohannesPfeifer/ramsey_message

Ramsey: provide informative error messages related to steady state
time-shift
Stéphane Adjemian 2017-05-02 22:56:26 +02:00 committed by GitHub
commit f6bb392165
2 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,10 @@ else
xx = oo.steady_state(1:n_var);
opt = options_;
opt.jacobian_flag = 0;
[xx,check] = dynare_solve(nl_func,xx,opt);
[xx,info1] = dynare_solve(nl_func,xx,opt);
if info1~=0
check=81;
end
[junk,junk,steady_state] = nl_func(xx);
end

View File

@ -33,6 +33,10 @@ if inst_nbr~=0
elseif inst_nbr<implied_inst_nbr
error('You have specified fewer instruments than there are omitted equations')
end
else
if options_.steadystate_flag
error('You have specified a steady state file, but not provided an instrument. Either delete the steady state file or provide an instrument')
end
end
info = stoch_simul(var_list);