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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Merge requests
!1720
Fix two bugs in Ramsey steady state finding
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Fix two bugs in Ramsey steady state finding
JohannesPfeifer/dynare:ramsey_bug
into
master
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Fix two bugs in Ramsey steady state finding
Johannes Pfeifer
requested to merge
JohannesPfeifer/dynare:ramsey_bug
into
master
Mar 6, 2020
Overview
0
Commits
2
Pipelines
1
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2004641a
2 commits,
Mar 6, 2020
1 file
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
matlab/dyn_ramsey_static.m
+
6
−
1
View file @ 2004641a
Edit in single-file editor
Open in Web IDE
Show full file
@@ -121,10 +121,15 @@ if options_.steadystate_flag
oo
.
exo_det_steady_state
],
...
M
,
options_
,
~
options_
.
steadystate
.
nocheck
);
if
any
(
imag
(
x
(
1
:
M
.
orig_endo_nbr
)))
%return with penalty
resids
=
1
+
sum
(
abs
(
imag
(
x
(
1
:
M
.
orig_endo_nbr
))));
%return with penalty
resids
=
ones
(
inst_nbr
,
1
)
+
sum
(
abs
(
imag
(
x
(
1
:
M
.
orig_endo_nbr
))));
%return with penalty
steady_state
=
NaN
(
endo_nbr
,
1
);
return
end
if
check
%return
resids
=
ones
(
inst_nbr
,
1
)
+
sum
(
abs
(
x
(
1
:
M
.
orig_endo_nbr
)));
%return with penalty
steady_state
=
NaN
(
endo_nbr
,
1
);
return
end
end
Loading