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
Merge requests
!1924
evaluate_planner_objective.m: compatibility fix for older Matlab versions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
evaluate_planner_objective.m: compatibility fix for older Matlab versions
JohannesPfeifer/dynare:planner_matlab_2014
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Johannes Pfeifer
requested to merge
JohannesPfeifer/dynare:planner_matlab_2014
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Use single quotes
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
85a5a563
1 commit,
3 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
matlab/evaluate_planner_objective.m
+
3
−
3
Options
@@ -95,9 +95,9 @@ if options_.ramsey_policy
[
U
]
=
feval
([
M_
.
fname
'.objective.static'
],
oo_
.
endo_simul
(:,
t
),
oo_
.
exo_simul
(
t
,:),
M_
.
params
);
W
=
U
+
beta
*
W
;
end
planner_objective_value
=
struct
(
"
conditional
"
,
W
,
"
unconditional
"
,
EW
);
planner_objective_value
=
struct
(
'
conditional
'
,
W
,
'
unconditional
'
,
EW
);
else
planner_objective_value
=
struct
(
"
conditional
"
,
struct
(
"
zero_initial_multiplier
"
,
0.
,
"
steady_initial_multiplier
"
,
0.
),
"
unconditional
"
,
0.
);
planner_objective_value
=
struct
(
'
conditional
'
,
struct
(
'
zero_initial_multiplier
'
,
0.
,
'
steady_initial_multiplier
'
,
0.
),
'
unconditional
'
,
0.
);
ys
=
oo_
.
dr
.
ys
;
if
options_
.
order
==
1
||
M_
.
hessian_eq_zero
[
U
,
Uy
]
=
feval
([
M_
.
fname
'.objective.static'
],
ys
,
zeros
(
1
,
exo_nbr
),
M_
.
params
);
@@ -228,7 +228,7 @@ if options_.ramsey_policy
end
elseif
options_
.
discretionary_policy
ys
=
oo_
.
dr
.
ys
;
planner_objective_value
=
struct
(
"
conditional
"
,
struct
(
"
zero_initial_multiplier
"
,
0.
,
"
steady_initial_multiplier
"
,
0.
),
"
unconditional
"
,
0.
);
planner_objective_value
=
struct
(
'
conditional
'
,
struct
(
'
zero_initial_multiplier
'
,
0.
,
'
steady_initial_multiplier
'
,
0.
),
'
unconditional
'
,
0.
);
[
U
,
Uy
,
Uyy
]
=
feval
([
M_
.
fname
'.objective.static'
],
ys
,
zeros
(
1
,
exo_nbr
),
M_
.
params
);
Loading