Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
18a172bd
Verified
Commit
18a172bd
authored
3 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Plain Diff
Merge branch 'mcp_ramsey' of git.dynare.org:JohannesPfeifer/dynare
See merge request
!1874
parents
88b427f7
1d10659b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/lmmcp/get_complementarity_conditions.m
+0
-3
0 additions, 3 deletions
matlab/lmmcp/get_complementarity_conditions.m
tests/Makefile.am
+1
-0
1 addition, 0 deletions
tests/Makefile.am
tests/lmmcp/MCP_ramsey.mod
+33
-0
33 additions, 0 deletions
tests/lmmcp/MCP_ramsey.mod
with
34 additions
and
3 deletions
matlab/lmmcp/get_complementarity_conditions.m
+
0
−
3
View file @
18a172bd
...
...
@@ -52,9 +52,6 @@ etags = M_.equations_tags;
for
i
=
1
:
size
(
etags
,
1
)
if
strcmp
(
etags
{
i
,
2
},
'mcp'
)
eq_nbr
=
etags
{
i
,
1
};
if
ramsey_policy
eq_nbr
=
eq_nbr
+
M_
.
ramsey_eq_nbr
;
end
str
=
etags
{
i
,
3
};
kop
=
strfind
(
etags
{
i
,
3
},
'<'
);
if
~
isempty
(
kop
)
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile.am
+
1
−
0
View file @
18a172bd
...
...
@@ -7,6 +7,7 @@ MODFILES = \
lmmcp/rbcii.mod
\
lmmcp/purely_backward.mod
\
lmmcp/purely_forward.mod
\
lmmcp/MCP_ramsey.mod
\
ep/rbc_mc.mod
\
estimation/TaRB/fs2000_tarb.mod
\
observation_trends_and_prefiltering/MCMC/Trend_loglin_no_prefilt_first_obs_MC.mod
\
...
...
This diff is collapsed.
Click to expand it.
tests/lmmcp/MCP_ramsey.mod
0 → 100644
+
33
−
0
View file @
18a172bd
//Toy model of Alichi et al. (2015): Avoiding Dark Corners: A Robust Monetary Policy Framework for the United States
// checks whether lmmcp works with ramsey_model
var i y pi;
varexo e_y e_pi;
parameters beta1 beta2 beta3 lambda1 lambda2 pi_bar;
beta1 = 0.6;
beta2 = 0.25;
beta3 = -0.2;
lambda1 = 0.7;
lambda2 = 0.1;
pi_bar = 2.0;
model;
[mcp = 'i > 0']
y = beta1*y(-1) + beta2*y(+1) + beta3*(i-pi(+1)) + e_y;
pi = lambda1*pi(+1) + (1-lambda1)*pi(-1) + lambda2*y + e_pi;
end;
planner_objective (pi-pi_bar)^2 + y^2;
ramsey_model(planner_discount=1.0);
histval;
y(0) = -2.0;
pi(0) = 1.0;
end;
steady;
perfect_foresight_setup(periods=50);
perfect_foresight_solver(lmmcp);
rplot i;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment