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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
85a5a563
Commit
85a5a563
authored
3 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
evaluate_planner_objective.m: compatibility fix for older Matlab versions
Use single quotes
parent
b0d2b849
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/evaluate_planner_objective.m
+3
-3
3 additions, 3 deletions
matlab/evaluate_planner_objective.m
with
3 additions
and
3 deletions
matlab/evaluate_planner_objective.m
+
3
−
3
View file @
85a5a563
...
@@ -95,9 +95,9 @@ if options_.ramsey_policy
...
@@ -95,9 +95,9 @@ if options_.ramsey_policy
[
U
]
=
feval
([
M_
.
fname
'.objective.static'
],
oo_
.
endo_simul
(:,
t
),
oo_
.
exo_simul
(
t
,:),
M_
.
params
);
[
U
]
=
feval
([
M_
.
fname
'.objective.static'
],
oo_
.
endo_simul
(:,
t
),
oo_
.
exo_simul
(
t
,:),
M_
.
params
);
W
=
U
+
beta
*
W
;
W
=
U
+
beta
*
W
;
end
end
planner_objective_value
=
struct
(
"
conditional
"
,
W
,
"
unconditional
"
,
EW
);
planner_objective_value
=
struct
(
'
conditional
'
,
W
,
'
unconditional
'
,
EW
);
else
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
;
ys
=
oo_
.
dr
.
ys
;
if
options_
.
order
==
1
||
M_
.
hessian_eq_zero
if
options_
.
order
==
1
||
M_
.
hessian_eq_zero
[
U
,
Uy
]
=
feval
([
M_
.
fname
'.objective.static'
],
ys
,
zeros
(
1
,
exo_nbr
),
M_
.
params
);
[
U
,
Uy
]
=
feval
([
M_
.
fname
'.objective.static'
],
ys
,
zeros
(
1
,
exo_nbr
),
M_
.
params
);
...
@@ -228,7 +228,7 @@ if options_.ramsey_policy
...
@@ -228,7 +228,7 @@ if options_.ramsey_policy
end
end
elseif
options_
.
discretionary_policy
elseif
options_
.
discretionary_policy
ys
=
oo_
.
dr
.
ys
;
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
);
[
U
,
Uy
,
Uyy
]
=
feval
([
M_
.
fname
'.objective.static'
],
ys
,
zeros
(
1
,
exo_nbr
),
M_
.
params
);
...
...
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