Merge pull request #663 from JohannesPfeifer/master

Bugfix and cosmetic fix
time-shift
Sébastien Villemot 2014-07-01 17:56:48 +02:00
commit 939fb78624
4 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ end
% Return, with endogenous penalty when possible, if dynare_resolve issues an error code (defined in resol).
if info(1) == 1 || info(1) == 2 || info(1) == 5 || info(1) == 7 || info(1) ...
== 8 || info(1) == 22 || info(1) == 24 || info(1) == 19
== 8 || info(1) == 22 || info(1) == 24 || info(1) == 19 || info(1) == 25
fval = objective_function_penalty_base+1;
info = info(1);
exit_flag = 0;

View File

@ -131,7 +131,7 @@ end
% Return, with endogenous penalty when possible, if dynare_resolve issues an error code (defined in resol).
if info(1) == 1 || info(1) == 2 || info(1) == 5 || info(1) == 7 || info(1) ...
== 8 || info(1) == 22 || info(1) == 24
== 8 || info(1) == 22 || info(1) == 24 || info(1) == 25
fval = objective_function_penalty_base+1;
info = info(1);
exit_flag = 0;

View File

@ -217,7 +217,7 @@ end
% Linearize the model around the deterministic sdteadystate and extract the matrices of the state equation (T and R).
[T,R,SteadyState,info,Model,DynareOptions,DynareResults] = dynare_resolve(Model,DynareOptions,DynareResults,'restrict');
if info(1) == 1 || info(1) == 2 || info(1) == 5
if info(1) == 1 || info(1) == 2 || info(1) == 5 || info(1) == 25
fval = objective_function_penalty_base+1;
exit_flag = 0;
return

View File

@ -1516,7 +1516,7 @@ DynamicModel::writeDynamicMFile(const string &dynamic_basename) const
<< "% Inputs :" << endl
<< "% y [#dynamic variables by 1] double vector of endogenous variables in the order stored" << endl
<< "% in M_.lead_lag_incidence; see the Manual" << endl
<< "% x [M_.exo_nbr by nperiods] double matrix of exogenous variables (in declaration order)" << endl
<< "% x [nperiods by M_.exo_nbr] double matrix of exogenous variables (in declaration order)" << endl
<< "% for all simulation periods" << endl
<< "% params [M_.param_nbr by 1] double vector of parameter values in declaration order" << endl
<< "% it_ scalar double time period for exogenous variables for which to evaluate the model" << endl