Commit Graph

15031 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
Johannes Pfeifer ab6b642596 NK_baseline_steadystate.m: provide proper error handling 2022-05-17 12:34:48 +02:00
Johannes Pfeifer aeac54bd15 occbin: clarify concept of baseline regime 2022-05-17 12:25:14 +02:00
Johannes Pfeifer 0685e03ecd occbin: add warning on spurious regime transitions 2022-05-17 12:25:14 +02:00
Sébastien Villemot 40871519fc
Merge branch 'mom_SE' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2024
2022-05-16 19:10:52 +02:00
Sébastien Villemot e8a71a18fe
Preprocessor: various modernizations and simplifications 2022-05-16 19:10:27 +02:00
Sébastien Villemot a95531f357
Dynare++: drop redundant move-assignment operator in Vector class 2022-05-16 17:59:50 +02:00
Stéphane Adjemian (Ryûk) c033a08cec
Remove third unit test in local_state_space_iteration_2. 2022-05-13 22:14:07 +02:00
Stéphane Adjemian (Ryûk) 2ff705f15c
Change second unit test for local_state_space_iteration_2...
To something closer to what we actually do when we estimate a model.
2022-05-13 22:12:09 +02:00
Stéphane Adjemian (Ryûk) cd76bdff9e
Fix and update unit tests for local_state_space_iteration_2.
Add mat file with git lfs.
2022-05-13 12:13:46 +02:00
Stéphane Adjemian (Ryûk) f7204e6ec8
Bug fix (pruning at second order in estimation).
Closes #1853.
2022-05-13 11:39:49 +02:00
Stéphane Adjemian (Ryûk) c17728da83
Make sure matlab routine is used in first unit test. 2022-05-12 13:02:41 +02:00
Stéphane Adjemian (Ryûk) 49727cf7a0
Remove %$ in unit tests. 2022-05-12 13:00:44 +02:00
Stéphane Adjemian (Ryûk) 68887b36e6
Cosmetic change. 2022-05-12 13:00:02 +02:00
Stéphane Adjemian (Ryûk) 8edc6538bf
Rewrite header doc. 2022-05-12 12:58:32 +02:00
Stéphane Adjemian (Ryûk) c492ce7b73
Remove unused routines. 2022-05-12 10:33:48 +02:00
Stéphane Adjemian (Ryûk) 4e90a47521
Throw an error if some parameters are not initialised. 2022-05-12 10:33:48 +02:00
Johannes Pfeifer 0bc9a163b2 mom.standard_errors.m: provide more informative error message when hitting bounds during finite difference step 2022-05-12 09:51:21 +02:00
Sébastien Villemot a2a90c7e37
Merge branch 'model_diag' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2023
2022-05-05 18:41:34 +02:00
Sébastien Villemot 41ccfd4068
Bytecode: use braces (instead of $ and £) to highlight floating-point errors in expressions 2022-05-05 17:10:27 +02:00
Sébastien Villemot f934d0fd73
README.md: update links to homepages of dependencies
[skip ci]
2022-05-05 17:10:27 +02:00
Sébastien Villemot cc8b2fd920
Bump to C++20 standard (with GNU extensions)
In practice, for the time being, we limit ourselves to C++20 features available
in GCC 10.
2022-05-04 18:33:07 +02:00
Sébastien Villemot ce2c1e0d30
No longer use C++ UTF-8 string literals
They don’t bring any added value, and break compilation in C++20 mode (because
they are then of type “const char8_t *” which is distinct from “const char *”).
2022-05-04 18:32:52 +02:00
Johannes Pfeifer 737524d182 model_diagnostics.m: add check for potential naming conflict 2022-05-04 13:05:27 +02:00
Sébastien Villemot 63a116fb28
New += and *= syntaxes in “endval(learnt_in=…)” blocks 2022-05-03 17:46:59 +02:00
Sébastien Villemot 5b49662a94
Preprocessor: compatibility fix for GCC 12
Closes: #1852
2022-05-02 17:07:00 +02:00
Sébastien Villemot a2fbd6d23c
Manual: fix typo
[skip ci]
2022-04-29 17:47:36 +02:00
Sébastien Villemot 0b32ad5b51
Merge branch 'ramsey_steady' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2022
2022-04-29 17:44:28 +02:00
Sébastien Villemot be90ca1156
Manual: add perfect foresight with expectation errors 2022-04-29 17:43:35 +02:00
Sébastien Villemot b084c2e931
Perfect foresight with expectation errors: move computation of terminal steady states to the setup command
This is more logical, since those values are constraints from the point of view
of the solver.

Also, this allows to have maxit and tolf options for the steady state solver,
at the level of the setup command, without a clash with the same option names
for the deterministic solver at the level of the solver command.
2022-04-29 15:56:11 +02:00
Sébastien Villemot 252a592f1a
Allow “learnt_in=1” for “shocks” and “endval” 2022-04-29 15:55:57 +02:00
Sébastien Villemot 418a8ebb5f
Drop steady_.m which is only a thin wrapper around evaluate_steady_state
As a consequence, move the sanity checks inside evaluate_steady_state, where
they make more sense.
2022-04-29 15:14:43 +02:00
Sébastien Villemot 518ef89268
Manual: fix typo and fonts 2022-04-29 11:23:39 +02:00
Johannes Pfeifer 21004adf03 evaluate_steady_state.m: correctly account for presence of auxiliary variables potentially depending on Lagrange multipliers
Otherwise error message due to NaN may be thrown out due to them non having been set. Closes https://git.dynare.org/Dynare/preprocessor/-/issues/94
2022-04-28 21:49:05 +02:00
Sébastien Villemot e58552d914 Merge branch 'occbin_error' into 'master'
Occbin: filter out problems in solving the baseline model

See merge request Dynare/dynare!2021
2022-04-28 13:04:53 +00:00
Johannes Pfeifer 6536e135cb Occbin: filter out problems in solving the baseline model 2022-04-28 13:33:48 +02:00
Stéphane Adjemian (Charybdis) 8b197bf71c
Remove duplicate assignments for parameters. 2022-04-28 12:58:22 +02:00
Stéphane Adjemian (Charybdis) 4386116c91
Fixed unit tests. 2022-04-28 12:58:22 +02:00
Stéphane Adjemian (Charybdis) 1d22285043
Throw a warning if a parameter has no value. 2022-04-28 12:58:22 +02:00
Sébastien Villemot a600336c92
New “add” and “multiply” keywords in “shocks(learnt_in=…)” block 2022-04-26 15:22:15 +02:00
Sébastien Villemot 7dda3c7985
Preprocessor update
— Reject exogenous deterministic variables in a few places where they were
  erroneously accepted
– Use booleans for “exo_det” and “multiplicative” fields of M_.det_shocks
— Add checks on the value of the “learnt_in” option of “shocks” and “endval”
2022-04-26 14:52:31 +02:00
Sébastien Villemot b6dc32621f Merge branch 'simult' into 'master'
simult.m: fix saving of binary file

See merge request Dynare/dynare!2020
2022-04-25 12:52:22 +00:00
Johannes Pfeifer 6805cad636 simult.m: fix saving of binary file 2022-04-23 19:41:51 +02:00
Sébastien Villemot 8488674ce4
New shocks(learnt_in=…) and endval(learnt_in=…) blocks
For use with perfect_foresight_with_expectation_errors_setup.
2022-04-21 17:10:52 +02:00
Sébastien Villemot c06be7fefd
Octave 7 fixes bug in mkdir which now creates parent directory 2022-04-20 10:36:56 +02:00
Stéphane Adjemian (Charybdis) 931a9ba336
Use residuals and jacobian matrix returned by fsolve routine. 2022-04-19 19:20:20 +02:00
Stéphane Adjemian (Charybdis) 4d646ba30b
Fix evaluation of the dynamic model.
Call the wrapper instead of the dynamic routine.
2022-04-19 19:15:21 +02:00
Sébastien Villemot 1826421eac
Preprocessor update
– Improve messages during model normalization
– Macro-processor: more robust handling of empty files
– Improvements to macroprocessor slides
2022-04-19 17:54:54 +02:00
Sébastien Villemot ce7540747b
dynare_solve: fix bug introduced in ef2bb4e669
The feval(f, x, args{:}) call would fail under Octave because the contents of
args{:} would be appended twice (hence too many input arguments error).

The same bug would materialize under MATLAB for errorcode>1.
2022-04-19 17:52:37 +02:00
Stéphane Adjemian (Charybdis) 63224ed45d
Bug fix (display of problematic equations). 2022-04-19 16:33:29 +02:00
Stéphane Adjemian (Charybdis) b9f7733c6b
Fix cherrypick routine.
Was failing when model contain variable and parameter names ending with the name
of a built-in function.

Closes #1813
2022-04-17 10:14:15 +02:00