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
656c1300
Verified
Commit
656c1300
authored
11 months ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
More flexible syntax for complementarity conditions
parent
90e703ad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#10488
passed
11 months ago
Stage: build
Stage: test
Stage: pkg
Stage: sign
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/manual/source/the-model-file.rst
+7
-5
7 additions, 5 deletions
doc/manual/source/the-model-file.rst
preprocessor
+1
-1
1 addition, 1 deletion
preprocessor
tests/lmmcp/rbcii.mod
+7
-1
7 additions, 1 deletion
tests/lmmcp/rbcii.mod
with
15 additions
and
7 deletions
doc/manual/source/the-model-file.rst
+
7
−
5
View file @
656c1300
...
...
@@ -3929,11 +3929,13 @@ speed-up on large models.
would be wrong.
Note that in the current implementation, the content of the
complementarity condition is not parsed by the preprocessor. The
inequalities must therefore be as simple as possible: an
endogenous variable, followed by a relational operator,
followed by a number (not a variable, parameter or expression).
Note that both the lower and the upper bounds can be specified at the
same time in a given complementarity condition. Moreover, arbitrary
functions of parameters can appear in the bounds. As an example, the
following complementarity condition is syntactically correct (assuming
that ``alpha`` is a parameter):
``… ⟂ -1.94478 < r < 1+2*alpha;``
.. option:: endogenous_terminal_period
...
...
This diff is collapsed.
Click to expand it.
preprocessor
@
fab3b682
Compare
dc1ec15f
...
fab3b682
Subproject commit
dc1ec15fc6fec59cc4c70fdb719bf731d7a57c9c
Subproject commit
fab3b682c386b9ab7ff26fbb432338e5d1bcf615
This diff is collapsed.
Click to expand it.
tests/lmmcp/rbcii.mod
+
7
−
1
View file @
656c1300
/* Tests the MCP solver on a RBC model with irreversible investment.
An additional (dummy) upper bound on investment has been added, to test the
extended syntax with both lower and upper bounds, and parameters in the
bound. */
var k, y, L, c, i, A, a, mu;
varexo epsilon;
parameters beta, theta, tau, alpha, psi, delta, rho, Astar, sigma;
...
...
@@ -21,7 +27,7 @@ model;
k = y-c+(1-delta)*k(-1);
i = k-(1-delta)*k(-1);
mu = 0 ⟂ i > 0;
mu = 0 ⟂
1+2*alpha >
i > 0;
end;
steady_state_model;
...
...
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