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
cb22acb3
Verified
Commit
cb22acb3
authored
3 years ago
by
Johannes Pfeifer
Committed by
Sébastien Villemot
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
evaluate_steady_state.m: do not check auxiliary initial values if they haven't been set
(cherry picked from commit
b966e5eb
)
parent
d04ab0ad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6531
passed
3 years ago
Stage: build
Stage: test
Stage: pkg
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/evaluate_steady_state.m
+10
-2
10 additions, 2 deletions
matlab/evaluate_steady_state.m
with
10 additions
and
2 deletions
matlab/evaluate_steady_state.m
+
10
−
2
View file @
cb22acb3
...
...
@@ -127,14 +127,22 @@ if options.ramsey_policy
end
end
if
options
.
debug
infrow
=
find
(
isinf
(
ys_init
));
if
steadystate_flag
infrow
=
find
(
isinf
(
ys_init
(
1
:
M
.
orig_endo_nbr
)));
else
infrow
=
find
(
isinf
(
ys_init
));
end
if
~
isempty
(
infrow
)
fprintf
(
'\nevaluate_steady_state: The initial values for the steady state of the following variables are Inf:\n'
);
for
iter
=
1
:
length
(
infrow
)
fprintf
(
'%s\n'
,
M
.
endo_names
{
infrow
(
iter
)});
end
end
nanrow
=
find
(
isnan
(
ys_init
));
if
steadystate_flag
nanrow
=
find
(
isnan
(
ys_init
(
1
:
M
.
orig_endo_nbr
)));
else
nanrow
=
find
(
isnan
(
ys_init
));
end
if
~
isempty
(
nanrow
)
fprintf
(
'\nevaluate_steady_state: The initial values for the steady state of the following variables are NaN:\n'
);
for
iter
=
1
:
length
(
nanrow
)
...
...
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