Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
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
Johannes Pfeifer
dynare
Commits
63224ed4
Verified
Commit
63224ed4
authored
3 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix (display of problematic equations).
parent
b9f7733c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/backward/simul_backward_nonlinear_model_.m
+4
-4
4 additions, 4 deletions
matlab/backward/simul_backward_nonlinear_model_.m
with
4 additions
and
4 deletions
matlab/backward/simul_backward_nonlinear_model_.m
+
4
−
4
View file @
63224ed4
...
@@ -118,19 +118,19 @@ for it = initialconditions.nobs+(1:samplesize)
...
@@ -118,19 +118,19 @@ for it = initialconditions.nobs+(1:samplesize)
if
any
(
residuals_evaluating_to_nan
)
if
any
(
residuals_evaluating_to_nan
)
dprintf
(
'Following equations are evaluating to NaN:'
)
dprintf
(
'Following equations are evaluating to NaN:'
)
skipline
()
skipline
()
display_names_of_problematic_equations
(
DynareModel
,
residuals_evaluating_to_nan
);
display_names_of_problematic_equations
(
DynareModel
,
eqtags
,
residuals_evaluating_to_nan
);
skipline
()
skipline
()
end
end
if
any
(
residuals_evaluating_to_inf
)
if
any
(
residuals_evaluating_to_inf
)
dprintf
(
'Following equations are evaluating to Inf:'
)
dprintf
(
'Following equations are evaluating to Inf:'
)
skipline
()
skipline
()
display_names_of_problematic_equations
(
DynareModel
,
residuals_evaluating_to_
nan
);
display_names_of_problematic_equations
(
DynareModel
,
eqtags
,
residuals_evaluating_to_
inf
);
skipline
()
skipline
()
end
end
if
any
(
residuals_evaluating_to_complex
)
if
any
(
residuals_evaluating_to_complex
)
dprintf
(
'Following equations are evaluating to a complex number:'
)
dprintf
(
'Following equations are evaluating to a complex number:'
)
skipline
()
skipline
()
display_names_of_problematic_equations
(
DynareModel
,
residuals_evaluating_to_
nan
);
display_names_of_problematic_equations
(
DynareModel
,
eqtags
,
residuals_evaluating_to_
complex
);
skipline
()
skipline
()
end
end
break
break
...
@@ -142,7 +142,7 @@ end
...
@@ -142,7 +142,7 @@ end
ysim
=
DynareOutput
.
endo_simul
(
1
:
DynareModel
.
orig_endo_nbr
,:);
ysim
=
DynareOutput
.
endo_simul
(
1
:
DynareModel
.
orig_endo_nbr
,:);
xsim
=
DynareOutput
.
exo_simul
;
xsim
=
DynareOutput
.
exo_simul
;
function
display_names_of_problematic_equations
(
DynareModel
,
TruthTable
)
function
display_names_of_problematic_equations
(
DynareModel
,
eqtags
,
TruthTable
)
for
i
=
1
:
DynareModel
.
orig_endo_nbr
for
i
=
1
:
DynareModel
.
orig_endo_nbr
if
TruthTable
(
i
)
if
TruthTable
(
i
)
dprintf
(
' - %s'
,
eqtags
{
i
})
dprintf
(
' - %s'
,
eqtags
{
i
})
...
...
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