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
William Gatt
dynare
Commits
ef797eec
Commit
ef797eec
authored
7 years ago
by
Johannes Pfeifer
Committed by
Stéphane Adjemian
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mode_check.m: account for case where bounds are infinite and not plots are shown
parent
4d89452e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/mode_check.m
+11
-3
11 additions, 3 deletions
matlab/mode_check.m
with
11 additions
and
3 deletions
matlab/mode_check.m
+
11
−
3
View file @
ef797eec
...
...
@@ -111,14 +111,22 @@ for plt = 1:nbplt
end
end
xx
=
x
;
if
x
(
kk
)
~=
0
if
x
(
kk
)
~=
0
||
~
isinf
(
BoundsInfo
.
lb
(
kk
))
||
~
isinf
(
BoundsInfo
.
lb
(
kk
))
l1
=
max
(
BoundsInfo
.
lb
(
kk
),(
1
-
sign
(
x
(
kk
))
*
ll
)
*
x
(
kk
));
m1
=
0
;
%
lower
bound
l2
=
min
(
BoundsInfo
.
ub
(
kk
),(
1
+
sign
(
x
(
kk
))
*
ll
)
*
x
(
kk
));
%
upper
bound
else
%
size
info
for
0
parameter
is
missing
,
use
prior
standard
%
deviation
l1
=
max
(
BoundsInfo
.
lb
(
kk
),
-
BayesInfo
.
p2
(
kk
));
m1
=
0
;
%
lower
bound
l2
=
min
(
BoundsInfo
.
ub
(
kk
),
BayesInfo
.
p2
(
kk
));
%
upper
bound
upper_bound
=
BoundsInfo
.
lb
(
kk
);
if
isinf
(
upper_bound
)
upper_bound
=-
1e-6
*
DynareOptions
.
huge_number
;
end
lower_bound
=
BoundsInfo
.
ub
(
kk
);
if
isinf
(
lower_bound
)
lower_bound
=-
1e-6
*
DynareOptions
.
huge_number
;
end
l1
=
max
(
lower_bound
,
-
BayesInfo
.
p2
(
kk
));
m1
=
0
;
%
lower
bound
l2
=
min
(
upper_bound
,
BayesInfo
.
p2
(
kk
));
%
upper
bound
end
binding_lower_bound
=
0
;
binding_upper_bound
=
0
;
...
...
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