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
7e72b526
Commit
7e72b526
authored
4 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
model_diagnostics.m: only provide message if imaginary component reaches tolerance level
parent
5e36b688
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/model_diagnostics.m
+5
-3
5 additions, 3 deletions
matlab/model_diagnostics.m
with
5 additions
and
3 deletions
matlab/model_diagnostics.m
+
5
−
3
View file @
7e72b526
...
...
@@ -230,11 +230,13 @@ if ~options.block
display_problematic_vars_Jacobian
(
infrow
,
infcol
,
M
,
dr
.
ys
,
'dynamic'
,
'MODEL_DIAGNOSTICS: '
)
end
if
any
(
any
(
~
isreal
(
jacobia_
)))
problem_dummy
=
1
;
[
imagrow
,
imagcol
]
=
find
(
abs
(
imag
(
jacobia_
))
>
1e-15
);
if
~
isempty
(
imagrow
)
problem_dummy
=
1
;
fprintf
(
'\nMODEL_DIAGNOSTICS: The Jacobian of the dynamic model contains imaginary parts. The problem arises from: \n\n'
)
display_problematic_vars_Jacobian
(
imagrow
,
imagcol
,
M
,
dr
.
ys
,
'dynamic'
,
'MODEL_DIAGNOSTICS: '
)
end
end
if
exist
(
'hessian1'
,
'var'
)
if
any
(
any
(
isinf
(
hessian1
)
|
isnan
(
hessian1
)))
problem_dummy
=
1
;
...
...
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