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
fdb24d6a
Commit
fdb24d6a
authored
7 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
Add unit test for sim1_linear.m
parent
57fd56c9
No related branches found
No related tags found
1 merge request
!1484
sim1_linear.m: Fix evaluation of dynamic model at deterministic stead…
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/Makefile.am
+1
-0
1 addition, 0 deletions
tests/Makefile.am
tests/simul/linear_state_space_ARMA.mod
+43
-0
43 additions, 0 deletions
tests/simul/linear_state_space_ARMA.mod
with
44 additions
and
0 deletions
tests/Makefile.am
+
1
−
0
View file @
fdb24d6a
...
...
@@ -179,6 +179,7 @@ MODFILES = \
simul/simul_ZLB_purely_forward.mod
\
simul/simul_ZLB_purely_forward_no_solution.mod
\
simul/Irreversible_investment.mod
\
simul/linear_state_space_ARMA.mod
\
conditional_forecasts/2/fs2000_est.mod
\
conditional_forecasts/3/fs2000_conditional_forecast_initval.mod
\
conditional_forecasts/4/fs2000_conditional_forecast_histval.mod
\
...
...
This diff is collapsed.
Click to expand it.
tests/simul/linear_state_space_ARMA.mod
0 → 100644
+
43
−
0
View file @
fdb24d6a
%mod-file triggering the sim1_linear.m solver;
%The exogenous arma processes test whether the Jacobian at the
%deterministic steady state is correctly computed
var x
y
z;
varexo u
v;
parameters a1 a2 a3 a4
b1 b2 b3
c1;
a1 = .50;
a2 = .00;
a3 = .70;
a4 = .40;
b1 = .90;
b2 = .00;
b3 = .80;
c1 = .95;
model(linear);
y = a1*x(-1) + a2*x(+1) + a3*z + a4*y(-1);
z = b1*z(-1) + b2*z(+1) + b3*x + u;
x = c1*x(-1) + v +v(-1)+v(+1);
end;
initval;
y=-1;
x=-1;
z=-1;
end;
endval;
y=0;
x=0;
z=0;
end;
steady;
simul(periods=1000,stack_solve_algo=0);
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