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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
04ba15e5
Verified
Commit
04ba15e5
authored
4 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Preprocessor: forbid check and stoch_simul in block-decomposed mode with mfs > 0
Closes:
#1726
parent
62aa799d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#5248
failed
4 years ago
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/dr_block.m
+4
-1
4 additions, 1 deletion
matlab/dr_block.m
preprocessor
+1
-1
1 addition, 1 deletion
preprocessor
tests/block_bytecode/lola_common.inc
+6
-8
6 additions, 8 deletions
tests/block_bytecode/lola_common.inc
with
11 additions
and
10 deletions
matlab/dr_block.m
+
4
−
1
View file @
04ba15e5
function
[
dr
,
info
,
M_
,
options_
,
oo_
]
=
dr_block
(
dr
,
task
,
M_
,
options_
,
oo_
,
varargin
)
function
[
dr
,
info
,
M_
,
options_
,
oo_
]
=
dr_block
(
dr
,
task
,
M_
,
options_
,
oo_
,
varargin
)
% function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin)
% function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin)
% computes the reduced form solution of a rational expectations model
% computes the reduced form solution of a rational expectations
block-decomposed
model
% (first order approximation of the stochastic model around the deterministic steady state).
% (first order approximation of the stochastic model around the deterministic steady state).
%
%
% NB: This code does not work with option mfs > 0. The preprocessor has a check to avoid this
% configuration. See also #1726.
%
% INPUTS
% INPUTS
% dr [matlab structure] Decision rules for stochastic simulations.
% dr [matlab structure] Decision rules for stochastic simulations.
% task [integer] if task = 0 then dr_block computes decision rules.
% task [integer] if task = 0 then dr_block computes decision rules.
...
...
This diff is collapsed.
Click to expand it.
preprocessor
@
3c4d647c
Compare
7765efe9
...
3c4d647c
Subproject commit
7765efe95bff0d724ccbc97c0b3f54357739501
7
Subproject commit
3c4d647cc33a14d3648ad0989557cf687a65048
7
This diff is collapsed.
Click to expand it.
tests/block_bytecode/lola_common.inc
+
6
−
8
View file @
04ba15e5
...
@@ -716,13 +716,12 @@ tauc2=tauc;
...
@@ -716,13 +716,12 @@ tauc2=tauc;
end
;
end
;
%==============================
==========================
%==============================
%
compute
initial
steady
state
and
check
eigenvalues
%
compute
initial
steady
state
%==============================
==========================
%==============================
resid
;
resid
;
steady
(
solve_algo
=
3
);
steady
(
solve_algo
=
3
);
check
;
@
#if deterministic
@
#if deterministic
...
@@ -930,13 +929,12 @@ tauw2=tauw;
...
@@ -930,13 +929,12 @@ tauw2=tauw;
tauc2
=
tauc
;
tauc2
=
tauc
;
end
;
end
;
%============================
============================
%============================
%
compute
final
steady
state
and
check
eigenvalues
%
compute
final
steady
state
%============================
============================
%============================
resid
;
resid
;
steady
(
solve_algo
=
3
);
steady
(
solve_algo
=
3
);
check
;
shocks
;
shocks
;
...
...
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