Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
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
preprocessor
Commits
7a758f67
Verified
Commit
7a758f67
authored
1 month ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Fix linearity check for Ramsey models with lead/lag>1 on endos or >0 on exos
Ref. dynare#1960
parent
122cc63c
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#11560
passed
1 month ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ModelEquationBlock.hh
+12
-1
12 additions, 1 deletion
src/ModelEquationBlock.hh
with
12 additions
and
1 deletion
src/ModelEquationBlock.hh
+
12
−
1
View file @
7a758f67
/*
/*
* Copyright © 2010-202
4
Dynare Team
* Copyright © 2010-202
5
Dynare Team
*
*
* This file is part of Dynare.
* This file is part of Dynare.
*
*
...
@@ -62,6 +62,17 @@ protected:
...
@@ -62,6 +62,17 @@ protected:
{
{
return
"original Ramsey model"
;
return
"original Ramsey model"
;
}
}
int
getJacobianCol
(
int
deriv_id
,
[[
maybe_unused
]]
bool
sparse
)
const
override
{
/* Override the DynamicModel method by returning a dummy Jacobian column number.
The override is necessary because the method from DynamicModel fails with
endos with lag/lead greater than 1 or exos with a lag/lead, while substitutions
are by definition not done for an original model.
In particular, this fixes dynare#1960 (equation derivatives are computed for models declared
as linear, to check whether they are truly linear). */
return
deriv_id
;
}
};
};
class
SteadyStateModel
:
public
DataTree
class
SteadyStateModel
:
public
DataTree
...
...
This diff is collapsed.
Click to expand it.
Sébastien Villemot
@sebastien
mentioned in commit
06c8bd92
·
1 month ago
mentioned in commit
06c8bd92
mentioned in commit 06c8bd92ac8bb74a1a59b3e027fa48bdd5b77270
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