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
d8baeb8f
Commit
d8baeb8f
authored
2 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Plain Diff
Merge branch 'diag' into 'master'
model_diagnostics.m: fix options_-name See merge request
!2069
parents
da1659d8
ba9ca26b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2069
model_diagnostics.m: fix options_-name
Pipeline
#7372
failed
2 years ago
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/model_diagnostics.m
+6
-6
6 additions, 6 deletions
matlab/model_diagnostics.m
with
6 additions
and
6 deletions
matlab/model_diagnostics.m
+
6
−
6
View file @
d8baeb8f
...
...
@@ -172,10 +172,10 @@ for b=1:nb
display_problematic_vars_Jacobian
(
imagrow
,
imagcol
,
M
,
dr
.
ys
,
'static'
,
'MODEL_DIAGNOSTICS: '
)
end
try
if
isoctave
||
matlab_ver_less_than
(
'9.12'
)
||
isempty
(
options
_
.
jacobian_tolerance
)
if
isoctave
||
matlab_ver_less_than
(
'9.12'
)
||
isempty
(
options
.
jacobian_tolerance
)
rank_jacob
=
rank
(
jacob
);
%can sometimes fail
else
rank_jacob
=
rank
(
jacob
,
options
_
.
jacobian_tolerance
);
%can sometimes fail
rank_jacob
=
rank
(
jacob
,
options
.
jacobian_tolerance
);
%can sometimes fail
end
catch
rank_jacob
=
size
(
jacob
,
1
);
...
...
@@ -187,10 +187,10 @@ for b=1:nb
'singular'
])
disp
([
'MODEL_DIAGNOSTICS: there is '
num2str
(
endo_nbr
-
rank_jacob
)
...
' colinear relationships between the variables and the equations'
])
if
isoctave
||
matlab_ver_less_than
(
'9.12'
)
||
isempty
(
options
_
.
jacobian_tolerance
)
if
isoctave
||
matlab_ver_less_than
(
'9.12'
)
||
isempty
(
options
.
jacobian_tolerance
)
ncol
=
null
(
jacob
);
else
ncol
=
null
(
jacob
,
options
_
.
jacobian_tolerance
);
%can sometimes fail
ncol
=
null
(
jacob
,
options
.
jacobian_tolerance
);
%can sometimes fail
end
n_rel
=
size
(
ncol
,
2
);
for
i
=
1
:
n_rel
...
...
@@ -206,10 +206,10 @@ for b=1:nb
end
fprintf
(
'%s\n'
,
endo_names
{
k
})
end
if
isoctave
||
matlab_ver_less_than
(
'9.12'
)
||
isempty
(
options
_
.
jacobian_tolerance
)
if
isoctave
||
matlab_ver_less_than
(
'9.12'
)
||
isempty
(
options
.
jacobian_tolerance
)
neq
=
null
(
jacob
'
);
%can sometimes fail
else
neq
=
null
(
jacob
'
,
options
_
.
jacobian_tolerance
);
%can sometimes fail
neq
=
null
(
jacob
'
,
options
.
jacobian_tolerance
);
%can sometimes fail
end
n_rel
=
size
(
neq
,
2
);
for
i
=
1
:
n_rel
...
...
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