2015-07-29 11:07:36 +02:00
|
|
|
module DynareOptions
|
|
|
|
##
|
|
|
|
# Copyright (C) 2015 Dynare Team
|
|
|
|
#
|
|
|
|
# This file is part of Dynare.
|
|
|
|
#
|
|
|
|
# Dynare is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Dynare is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
##
|
|
|
|
|
2016-06-13 11:58:43 +02:00
|
|
|
export Options, dynare_options
|
2015-07-29 11:07:36 +02:00
|
|
|
|
2016-06-14 11:13:27 +02:00
|
|
|
type PFMSolver
|
|
|
|
maxit::Int
|
|
|
|
periods::Int
|
|
|
|
tolx::Float64
|
|
|
|
tolf::Float64
|
|
|
|
end
|
|
|
|
|
|
|
|
function pfmsolver_set_defaults()
|
|
|
|
return PFMSolver(500, # maxit (Maximum number of iterations in Newton algorithm)
|
|
|
|
400, # periods (Number of periods to return to the steady state)
|
|
|
|
1e-6, # tolx (Tolerance criterion on the paths for the endogenous variables)
|
|
|
|
1e-6 # tolf (Tolerance criterion on the stacked non linear equations)
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2015-07-29 11:07:36 +02:00
|
|
|
type Options
|
2016-12-01 13:28:41 +01:00
|
|
|
dynare_version::String
|
2015-07-29 13:31:42 +02:00
|
|
|
linear::Bool
|
2016-06-14 11:13:27 +02:00
|
|
|
pfmsolver::PFMSolver
|
2015-07-29 11:07:36 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function dynare_options()
|
2016-06-14 11:13:27 +02:00
|
|
|
return Options("", # dynare_version
|
|
|
|
false, # linear
|
|
|
|
pfmsolver_set_defaults() # pfmsolver
|
|
|
|
)
|
2015-07-29 11:07:36 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|