


function discount_factor=get_optimal_policy_discount_factor(M)
get the value of Ramsey policy discount factor
INPUTS
params: (vector) value of parameters
param_names: (char array) list of parameter names
OUTPUTS
discount_factor (double) discount factor
SPECIAL REQUIREMENTS
none

0001 function discount_factor=get_optimal_policy_discount_factor(params,param_names) 0002 0003 %function discount_factor=get_optimal_policy_discount_factor(M) 0004 % get the value of Ramsey policy discount factor 0005 % 0006 % INPUTS 0007 % params: (vector) value of parameters 0008 % param_names: (char array) list of parameter names 0009 % 0010 % OUTPUTS 0011 % discount_factor (double) discount factor 0012 % 0013 % SPECIAL REQUIREMENTS 0014 % none 0015 0016 % Copyright (C) 2007-2011 Dynare Team 0017 % 0018 % This file is part of Dynare. 0019 % 0020 % Dynare is free software: you can redistribute it and/or modify 0021 % it under the terms of the GNU General Public License as published by 0022 % the Free Software Foundation, either version 3 of the License, or 0023 % (at your option) any later version. 0024 % 0025 % Dynare is distributed in the hope that it will be useful, 0026 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0027 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0028 % GNU General Public License for more details. 0029 % 0030 % You should have received a copy of the GNU General Public License 0031 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 0032 0033 discount_factor = params(find(strcmp('optimal_policy_discount_factor',cellstr(param_names))));