Commit Graph

88 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
Johannes Pfeifer 73ca68e052 model_inversion: Header cosmetics 2022-09-15 10:16:05 +02:00
Stéphane Adjemian (Charybdis) 584e661fff
Ensure that the ordering of the exogenous variables is correct...
in model inversion routines.
2022-06-17 17:48:00 +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
Stéphane Adjemian (Charybdis) 63224ed45d
Bug fix (display of problematic equations). 2022-04-19 16:33:29 +02:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Stéphane Adjemian (Ryûk) b09e91ff55
Add routine description in headers. 2022-04-10 21:22:51 +02:00
Stéphane Adjemian (Charybdis) f1aff2b370
Remove calls to dbstack in dynare_solve.
Adding three input parameters for maxit, tolf and tolx.

Closes #1841.
2022-04-10 20:29:57 +02:00
Stéphane Adjemian (Ryûk) 23a72d7aaa
Use dynare_solve to simulate purely forward deterministic models. 2022-04-10 09:39:28 +02:00
Stéphane Adjemian (Ryûk) ef2bb4e669
Return and use errorcode from dynare_solve.
Note that the interpretation of the error code depends on the nonlinear solver.
2022-04-09 16:06:24 +02:00
Stéphane Adjemian (Ryûk) 882091cc97
Return more info about nonlinear solver failures (solve1). 2022-03-03 22:30:38 +01:00
Stéphane Adjemian (Ryûk) e815fb2901
Display exitflag returned by fsolve.
When the Newton fails in the simulation of backward models.
2022-03-03 18:19:33 +01:00
Stéphane Adjemian (Ryûk) e6592b3943
Display more info if Newton fails in backward model simulations. 2022-03-03 16:57:59 +01:00
Stéphane Adjemian (Ryûk) 7ee124bbba
Fix bug.
Return the paths for the endogenous only before the nonlinear solver crash.
2022-03-03 10:57:40 +01:00
Stéphane Adjemian (Charybdis) 90ae54a6ff
Translate to English. 2022-03-03 09:35:30 +01:00
Stéphane Adjemian (Charybdis) 9d1e07a2e4
Fix headers. 2022-03-03 09:35:30 +01:00
Stéphane Adjemian (Charybdis) 1d916b1fe2
Bug fix.
[skip ci]
2022-01-27 11:07:09 +01:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Stéphane Adjemian (Charybdis) 27ee801a67
Add specialized version of sim1 for static models.
Also add an integration test and fix homotopy error message.
2021-05-28 14:11:34 +02:00
Stéphane Adjemian (Charybdis) 8683790927
Throw error if solve_algo={12,14} is used without JSON output. 2021-04-08 20:31:40 +02:00
Sébastien Villemot 7bbe67748b
simul_backward: Octave compatibility fix 2021-02-02 17:02:04 +01:00
Sébastien Villemot f662c17c5d
shock_decomposition_backward: Octave compatibility fix 2021-01-27 18:25:27 +01:00
Sébastien Villemot d52a35889c
shock_decomposition_backward: workaround for bug in MATLAB ≤ R2019a
Ref. dseries#45
2021-01-27 18:25:27 +01:00
Sébastien Villemot 4c2b906962
Add routine for shock decomposition of backward models
Closes: Enterprise/dynare#2
2020-09-18 17:40:45 +02:00
Stéphane Adjemian (Charybdis) 04b0e8aaa1
Bug fix related to missing aux variables if fourth argument is empty. 2020-05-26 17:43:07 +02:00
Stéphane Adjemian (Charybdis) 84ec142463
Return paths for the exogenous variables. 2020-04-09 10:40:46 +02:00
Stéphane Adjemian (Charybdis) f8bb514632
Return paths for all the endogenous variables if fourth argument is empty. 2020-04-08 17:59:23 +02:00
Sébastien Villemot 43ed7b2b69
Merge remote-tracking branch 'community/master' into enterprise 2020-03-27 16:28:41 +01:00
Stéphane Adjemian (Charybdis) 6ffbda470e
Use merge instead of horcat. 2020-03-13 17:44:35 +01:00
Stéphane Adjemian (Charybdis) 4bd775948e
Allow empty argument. 2020-03-13 17:44:09 +01:00
Stéphane Adjemian (Charybdis) 492b0fffea
Cosmetic change. 2020-03-11 12:34:21 +01:00
Stéphane Adjemian (Charybdis) 864d4c25c7
Updated simulation routine for nonlinear backward models.
Changes necessary for the latest patches on dynare_solve (solve_algo={12,14}).
2020-02-27 22:58:19 +01:00
Stéphane Adjemian (Charybdis) 84e7d4bd3d
Adapted code to use solve_algo={12,14}. 2020-02-20 13:12:16 +01:00
Stéphane Adjemian (Charybdis) 012e261944
Do not display the mapping between residuals and equations. 2020-02-20 11:39:03 +01:00
Stéphane Adjemian (Charybdis) 0f23f88700
Exit gracefully if Newton solver fails (added try/catch block). 2020-02-19 14:39:02 +01:00
Stéphane Adjemian (Charybdis) bcfa574462
Display equation name. 2020-02-17 21:48:25 +01:00
Sébastien Villemot 49dc997073
Global reindentation of MATLAB code (excluding submodules)
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Stéphane Adjemia (Scylla) ab911e98c4
Cosmetic changes. 2019-10-01 14:42:47 +02:00
Stéphane Adjemian (Charybdis) 766f752e7e Explicitly list input arguments.
Do not use varargin.

(cherry picked from commit 3fa584737d)
2019-06-21 11:33:00 +02:00
Stéphane Adjemian (Charybdis) 33873da95d Fixed bug.
Database was not updated with auxiliary variables.

(cherry picked from commit a64be8ff96)
2019-06-21 11:32:16 +02:00
Stéphane Adjemian (Charybdis) 84c24fc9e9 Use dprintf routine (in matlab/backward subfolder). 2019-06-21 11:27:44 +02:00
Stéphane Adjemian (Charybdis) 590fe96946 Added routine for simulating static models.
(cherry picked from commit b3af8c4a48)
2019-06-21 11:27:13 +02:00
Stéphane Adjemian (Charybdis) c415508b63 Test if leaded variables exists when calling simul_backward_model routine.
(cherry picked from commit fec807ea17)
2019-06-21 11:26:29 +02:00
Stéphane Adjemian (Charybdis) 3fa584737d Explicitly list input arguments.
Do not use varargin.
2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) a64be8ff96 Fixed bug.
Database was not updated with auxiliary variables.
2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) dc251f53f4 Use dprintf routine (in matlab/backward subfolder). 2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) b3af8c4a48 Added routine for simulating static models. 2019-06-21 11:21:34 +02:00
Stéphane Adjemian (Charybdis) fec807ea17 Test if leaded variables exists when calling simul_backward_model routine. 2019-06-21 11:21:34 +02:00
Stéphane Adjemia (Scylla) 3e3f8fbfbc
Cosmetic changes. 2019-02-13 15:19:19 +01:00
Stéphane Adjemia (Scylla) 3cfd588d3f
Allow initialization with histval block.
[skip ci]

(cherry picked from commit e9688560f6)
2019-02-13 15:19:18 +01:00
Stéphane Adjemia (Scylla) e9688560f6
Allow initialization with histval block.
[skip ci]
2019-02-11 16:57:20 +01:00