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
704b0c96
Commit
704b0c96
authored
13 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Added an option specifying if the bytecode solver has to be used first.
parent
8a35ee73
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/ep/extended_path.m
+13
-2
13 additions, 2 deletions
matlab/ep/extended_path.m
matlab/global_initialization.m
+2
-0
2 additions, 0 deletions
matlab/global_initialization.m
with
15 additions
and
2 deletions
matlab/ep/extended_path.m
+
13
−
2
View file @
704b0c96
...
...
@@ -120,6 +120,9 @@ if options_.ep.set_dynare_seed_to_default
set_dynare_seed
(
'default'
);
end
% Set bytecode flag
bytecode_flag
=
options_
.
ep
.
use_bytecode
;
% Simulate shocks.
switch
options_
.
ep
.
innovation_distribution
case
'gaussian'
...
...
@@ -223,7 +226,11 @@ while (t<sample_size)
endo_simul
=
oo_
.
endo_simul
;
while
1
if
~
increase_periods
[
flag
,
tmp
]
=
bytecode
(
'dynamic'
);
if
bytecode_flag
[
flag
,
tmp
]
=
bytecode
(
'dynamic'
);
else
flag
=
1
;
end
if
flag
[
flag
,
tmp
]
=
solve_perfect_foresight_model
(
oo_
.
endo_simul
,
oo_
.
exo_simul
,
pfm
);
end
...
...
@@ -292,7 +299,11 @@ while (t<sample_size)
oo_
.
exo_simul
=
[
oo_
.
exo_simul
;
zeros
(
options_
.
ep
.
step
,
size
(
shocks
,
2
))
];
end
% Solve the perfect foresight model with an increased number of periods.
[
flag
,
tmp
]
=
bytecode
(
'dynamic'
);
if
bytecode_flag
[
flag
,
tmp
]
=
bytecode
(
'dynamic'
);
else
flag
=
1
;
end
if
flag
[
flag
,
tmp
]
=
solve_perfect_foresight_model
(
oo_
.
endo_simul
,
oo_
.
exo_simul
,
pfm
);
end
...
...
This diff is collapsed.
Click to expand it.
matlab/global_initialization.m
+
2
−
0
View file @
704b0c96
...
...
@@ -115,6 +115,8 @@ ep.debug = 0;
ep
.
memory
=
0
;
% Set verbose mode
ep
.
verbosity
=
0
;
% Set bytecode flag
ep
.
use_bytecode
=
1
;
% Initialization of the perfect foresight equilibrium paths
% * init=0, previous solution is used.
% * init=1, a path generated with the first order reduced form is used.
...
...
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