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
f687b531
Verified
Commit
f687b531
authored
3 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix (wrong indexing in present value evaluation).
parent
eb6af4af
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6457
passed
3 years ago
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/+var_expectation/update_parameters.m
+2
-2
2 additions, 2 deletions
matlab/+var_expectation/update_parameters.m
with
2 additions
and
2 deletions
matlab/+var_expectation/update_parameters.m
+
2
−
2
View file @
f687b531
...
...
@@ -179,8 +179,8 @@ else
% Define the discounted companion matrix
DiscountedCompanionMatrix
=
discountfactor
*
CompanionMatrix
;
% First compute the parameters implied by the discounted sum from h=0 to h=horizon(1)-1
tmp1
=
eye
(
n
);
for
h
=
1
:
horizon
(
1
)
tmp1
=
zeros
(
n
);
for
h
=
0
:
horizon
(
1
)
-
1
tmp1
=
tmp1
+
mpower
(
DiscountedCompanionMatrix
,
h
);
end
tmp1
=
alpha
*
tmp1
;
...
...
This diff is collapsed.
Click to expand it.
Stéphane Adjemian
@stepan-a
mentioned in commit
8afab03e
·
3 years ago
mentioned in commit
8afab03e
mentioned in commit 8afab03e798462fb48224959227af45c4edc51e4
Toggle commit list
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