


wrapper for solve_one_boundary m-file when it is used with a dynamic
model
INPUTS
ya [vector] The endogenous of the current block
y_index [vector of int] The index of the endogenous variables of
the block
fname [string] name of the file containing the block
to simulate
y [matrix] All the endogenous variables of the model
x [matrix] All the exogenous variables of the model
params [vector] All the parameters of the model
OUTPUTS
r [vector] The residuals of the current block
ALGORITHM
none.
SPECIAL REQUIREMENTS
none.

0001 function r = lnsrch1_wrapper_one_boundary(ya, y_index, fname, y, x, params, steady_state, it_) 0002 % wrapper for solve_one_boundary m-file when it is used with a dynamic 0003 % model 0004 % 0005 % INPUTS 0006 % ya [vector] The endogenous of the current block 0007 % y_index [vector of int] The index of the endogenous variables of 0008 % the block 0009 % fname [string] name of the file containing the block 0010 % to simulate 0011 % y [matrix] All the endogenous variables of the model 0012 % x [matrix] All the exogenous variables of the model 0013 % params [vector] All the parameters of the model 0014 % OUTPUTS 0015 % r [vector] The residuals of the current block 0016 % 0017 % ALGORITHM 0018 % none. 0019 % 0020 % SPECIAL REQUIREMENTS 0021 % none. 0022 % 0023 0024 % Copyright (C) 2009 Dynare Team 0025 % 0026 % This file is part of Dynare. 0027 % 0028 % Dynare is free software: you can redistribute it and/or modify 0029 % it under the terms of the GNU General Public License as published by 0030 % the Free Software Foundation, either version 3 of the License, or 0031 % (at your option) any later version. 0032 % 0033 % Dynare is distributed in the hope that it will be useful, 0034 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0035 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0036 % GNU General Public License for more details. 0037 % 0038 % You should have received a copy of the GNU General Public License 0039 % along with Dynare. If not, see <http://www.gnu.org/licen 0040 0041 %reshape the input arguments of the dynamic function 0042 y(it_, :) = ya; 0043 [r, y, g1, g2, g3]=feval(fname, y, x, params, steady_state, it_, 0);