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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
d5ee4dcb
Verified
Commit
d5ee4dcb
authored
Mar 29, 2023
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Testsuite: add a test for deprecated simul command
parent
ec908386
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#8300
passed
Mar 29, 2023
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/Makefile.am
+6
-1
6 additions, 1 deletion
tests/Makefile.am
tests/deprecated/ramst.mod
+41
-0
41 additions, 0 deletions
tests/deprecated/ramst.mod
with
47 additions
and
1 deletion
tests/Makefile.am
+
6
−
1
View file @
d5ee4dcb
...
@@ -513,7 +513,8 @@ MODFILES = \
...
@@ -513,7 +513,8 @@ MODFILES = \
solve_algo_12_14/purely_forward_reference.mod
\
solve_algo_12_14/purely_forward_reference.mod
\
solve_algo_12_14/purely_forward_12.mod
\
solve_algo_12_14/purely_forward_12.mod
\
solve_algo_12_14/purely_forward_14.mod
\
solve_algo_12_14/purely_forward_14.mod
\
deprecated/ramsey_ex.mod
deprecated/ramsey_ex.mod
\
deprecated/ramst.mod
ECB_MODFILES
=
\
ECB_MODFILES
=
\
var-expectations/1/example1.mod
\
var-expectations/1/example1.mod
\
...
@@ -1029,6 +1030,10 @@ solve_algo_12_14/purely_forward_14.o.trs: solve_algo_12_14/purely_forward_refere
...
@@ -1029,6 +1030,10 @@ solve_algo_12_14/purely_forward_14.o.trs: solve_algo_12_14/purely_forward_refere
estimation/conditional-likelihood/1/fs2000_estimation_conditional.m.trs
:
estimation/conditional-likelihood/1/fs2000_estimation_exact.m.trs
estimation/conditional-likelihood/1/fs2000_estimation_conditional.m.trs
:
estimation/conditional-likelihood/1/fs2000_estimation_exact.m.trs
estimation/conditional-likelihood/1/fs2000_estimation_conditional.o.trs
:
estimation/conditional-likelihood/1/fs2000_estimation_exact.o.trs
estimation/conditional-likelihood/1/fs2000_estimation_conditional.o.trs
:
estimation/conditional-likelihood/1/fs2000_estimation_exact.o.trs
deprecated/ramst.m.trs
:
simul/ramst.m.trs
deprecated/ramst.o.trs
:
simul/ramst.o.trs
observation_trends_and_prefiltering/MCMC
:
m/observation_trends_and_prefiltering/MCMC o/observation_trends_and_prefiltering/MCMC
observation_trends_and_prefiltering/MCMC
:
m/observation_trends_and_prefiltering/MCMC o/observation_trends_and_prefiltering/MCMC
m/observation_trends_and_prefiltering/MCMC
:
$(patsubst %.mod
,
%.m.trs
,
$(filter observation_trends_and_prefiltering/MCMC/%.mod
,
$(MODFILES)))
m/observation_trends_and_prefiltering/MCMC
:
$(patsubst %.mod
,
%.m.trs
,
$(filter observation_trends_and_prefiltering/MCMC/%.mod
,
$(MODFILES)))
o/observation_trends_and_prefiltering/MCMC
:
$(patsubst %.mod
,
%.o.trs
,
$(filter observation_trends_and_prefiltering/MCMC/%.mod
,
$(MODFILES)))
o/observation_trends_and_prefiltering/MCMC
:
$(patsubst %.mod
,
%.o.trs
,
$(filter observation_trends_and_prefiltering/MCMC/%.mod
,
$(MODFILES)))
...
...
This diff is collapsed.
Click to expand it.
tests/deprecated/ramst.mod
0 → 100644
+
41
−
0
View file @
d5ee4dcb
// Tests the deprecated simul command
var c k;
varexo x;
parameters alph gam delt bet aa;
alph=0.5;
gam=0.5;
delt=0.02;
bet=0.05;
aa=0.5;
model;
c + k - aa*x*k(-1)^alph - (1-delt)*k(-1);
c^(-gam) - (1+bet)^(-1)*(aa*alph*x(+1)*k^(alph-1) + 1 - delt)*c(+1)^(-gam);
end;
initval;
x = 1;
k = ((delt+bet)/(1.0*aa*alph))^(1/(alph-1));
c = aa*k^alph-delt*k;
end;
steady;
check;
shocks;
var x;
periods 1;
values 1.2;
end;
simul(periods=200);
benchmark = load('../simul/ramst/Output/ramst_results.mat');
if max(abs(benchmark.oo_.endo_simul-oo_.endo_simul)) > 1e5
error('The results of simul are inconsistent with perfect_foresight_setup+perfect_foresight_solver');
end
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