Commit Graph

15031 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
Sébastien Villemot e22ca82ab6
Bytecode MEX: drop the ErrorMsg class and integrate most of its members inside the Evaluate class 2022-07-29 13:04:31 +02:00
Sébastien Villemot 034a981daa
Bytecode MEX: streamline error handling 2022-07-29 13:04:29 +02:00
Sébastien Villemot 4ec6c0dab4
Bytecode MEX: streamline preprocessor guards in includes 2022-07-29 12:40:33 +02:00
Sébastien Villemot 12a493c443
Merge branch 'metropolis' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2062
2022-07-28 17:23:58 +02:00
Sébastien Villemot 0076644bda
Bytecode MEX: fix bug with PowerDeriv printing introduced in ff85fc6489 2022-07-28 17:13:23 +02:00
Sébastien Villemot 7c4dc1abce
Bytecode MEX: in error messages, revert back to default floating point format
A move to fixed format was erroneously made in
4893f0e82c and
ff85fc6489, where stream formatting of floating
points has been replaced by the use of std::to_string().
2022-07-28 17:10:12 +02:00
Sébastien Villemot 6e1635658f
Bytecode MEX: split out code for dealing with variable names into a dedicated BasicSymbolTable class 2022-07-28 16:56:40 +02:00
Sébastien Villemot 5df3fde95e
Bytecode MEX: streamline function for adding tildes below FP error 2022-07-28 15:48:21 +02:00
Johannes Pfeifer df09084a89 posterior_sampler_initialization.m: save missing ProposalCovariance for mh_recover 2022-07-28 11:12:18 +02:00
Johannes Pfeifer 82a2717181 Remove unused metropolis_hastings_initialization.m
Remnant of refactorization in 4445f17e
2022-07-28 11:03:37 +02:00
Sébastien Villemot ca32be2dcb
Merge branch 'model_diag' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2058
2022-07-27 18:07:12 +02:00
Sébastien Villemot ff85fc6489
Bytecode MEX: refactor the routines that display expressions in human-readable form
In particular, minimize the number of parentheses written, using the same
algorithm as in the preprocessor.
2022-07-27 18:06:08 +02:00
Johannes Pfeifer 253c87b894 model_diagnostics.m: allow setting tolerance for singularity checks starting with Matlab 2022a 2022-07-27 13:15:29 +02:00
Sébastien Villemot 8d326373c6
Merge branch 'occ_test' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2061
2022-07-27 11:44:32 +02:00
Sébastien Villemot 2d812af2ae
Release notes for Dynare 5.2 2022-07-27 11:32:40 +02:00
Sébastien Villemot ad97361f67
Fix bug under MATLAB < R2016b introduced in 906062cfe5
The logic for testing the MATLAB version was incorrect.
2022-07-26 22:36:30 +02:00
Johannes Pfeifer dc40862eff testsuite: add smoother_redux option 2022-07-26 22:15:39 +02:00
Sébastien Villemot dd7aa1e42c Merge branch 'occbin_bug' into 'master'
bug fix for smoother_redux and state uncertainty with OCCBIN

Closes #1862

See merge request Dynare/dynare!2060
2022-07-26 17:57:15 +00:00
Sébastien Villemot 1b13bb2e6e
Bytecode MEX: simplify type for storing list of instructions 2022-07-26 18:27:23 +02:00
Marco Ratto 6d03a65488 bug fix for smoother_redux and state uncertainty with OCCBIN 2022-07-26 18:07:39 +02:00
Sébastien Villemot 9d84048710
Bytecode MEX: fix bug introduced in 8c01912a50
Use an iterator wrapped inside std::optional instead of a possibly-singular
iterator, because the latter has undefined behaviour.

By the way, pass arguments by const reference.
2022-07-26 16:35:06 +02:00
Sébastien Villemot dc224e71ed
Bytecode MEX: fix error messages for derivatives w.r.t. exogenous / exogenous deterministic
The wrong type was used for querying symbol names.
2022-07-26 16:35:06 +02:00
Sébastien Villemot f7ea4313b5 Merge branch 'smoother' into 'master'
Various fixes to smoother output

See merge request Dynare/dynare!2057
2022-07-26 14:33:42 +00:00
Sébastien Villemot 88a21cc6d1 Merge branch 'occbin_bug' into 'master'
fix bug in ambiguity in the first regime stored, between 01 10 and 11.

See merge request Dynare/dynare!2055
2022-07-26 13:33:36 +00:00
Johannes Pfeifer 2816550290 PKF: get required output if nk=1
Related to https://git.dynare.org/Dynare/dynare/-/issues/1861
2022-07-26 15:07:23 +02:00
Sébastien Villemot b93d04646e Merge branch 'discretion' into 'master'
evaluate_planner_objective.m: fix output for linear-quadratic problems solved at second order

See merge request Dynare/dynare!2056
2022-07-26 13:03:45 +00:00
Johannes Pfeifer 622f831625 Inversion filter: disable unavailable smoother outputs
Related to https://git.dynare.org/Dynare/dynare/-/issues/1861
2022-07-26 14:43:31 +02:00
Johannes Pfeifer 9bc71dffde dynare_estimation_1.m: fix typo 2022-07-26 14:36:25 +02:00
Johannes Pfeifer 59882e803b store_smoother_results.m: correctly set input arguments 2022-07-26 14:35:36 +02:00
Johannes Pfeifer b5c741998c evaluate_planner_objective.m: fix output for linear-quadratic problems solved at second order
Welfare does not correspond to the steady state in this case
2022-07-26 13:35:55 +02:00
Marco Ratto 906062cfe5 fix bug in ambiguity in the first regime stored, between 01 10 and 11. 2022-07-26 12:44:55 +02:00
Sébastien Villemot f21577bf39
Merge branch 'ident_fix' of git.dynare.org:wmutschl/dynare
Ref. !2054
2022-07-26 11:55:47 +02:00
Sébastien Villemot 7005634eb0
Merge branch 'ident_fix' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2050
2022-07-26 11:55:02 +02:00
Willi Mutschler 30a6d35f5a
🐛 identification do plots and display results only for nonempty objects
fixes #1860
2022-07-26 10:26:13 +02:00
Sébastien Villemot 8c01912a50
Bytecode MEX: simplify printing of numerical errors in expression
In particular, no longer rely on a duplicate implementation of the evaluator to
locate where the NaN or Inf is produced. Rather directly pass the pointer to
the faulty operator.
2022-07-25 18:07:18 +02:00
Sébastien Villemot a8351130f1
Bytecode MEX: bugfix in error message printing
Class Evaluate had data members with the same name as members of
ErrorMsg (which it derives from). In practice, this means that the data members
from ErrorMsg could be unitialized when displaying error messages.
2022-07-25 15:07:52 +02:00
Sébastien Villemot 848c111cf4 Merge branch 'discretion' into 'master'
discretionary_policy_initialization.m: fix logic of check for instruments

See merge request Dynare/dynare!2053
2022-07-25 09:26:50 +00:00
Johannes Pfeifer e9a1902410 discretionary_policy_initialization.m: fix logic of check for instruments
Related to https://git.dynare.org/Dynare/preprocessor/-/issues/101
2022-07-22 21:52:05 +02:00
Sébastien Villemot 13709f6853
Add “fsolve_options” option to “steady” command
Closes: #1856
2022-07-22 14:35:19 +02:00
Sébastien Villemot ceedb4869e
solve_algo=0: move to optimoptions under MATLAB, and to new options names for MATLAB⩾R2016a 2022-07-22 14:21:42 +02:00
Sébastien Villemot 16eabbbc4e
block_trust_region MEX: improve treatment of non-square blocks in Dulmage-Mendelsohn decomposition
– before erroring out, check whether the residuals for the block are already
  zero (in which case, move to next block)
– improve error message that is printed otherwise

Note that trying to solve under-determined blocks (as in dynare_solve.m) would
require too many changes in the existing code, so let’s leave it out.

Closes: #1851
2022-07-22 12:43:38 +02:00
Sébastien Villemot e203c5baf3
Preprocessor update
– Bugfix with temporary terms in block+bytecode
– Block decomposition: (likely) performance improvement in static file in
  relation to temp terms
– Code factorization
2022-07-21 18:22:36 +02:00
Sébastien Villemot feb10b75e6
Bytecode MEX: minor fix to debug mode 2022-07-20 16:19:49 +02:00
Sébastien Villemot e87d643084
Preprocessor: various refactorings, mainly bytecode-related 2022-07-20 16:18:02 +02:00
Sébastien Villemot f454d1ae21
Bytecode MEX: build with -Wmaybe-unitialized 2022-07-20 15:10:40 +02:00
Sébastien Villemot 32f8005070
Windows and macOS packages: bump to x13as 1.1-b59 2022-07-18 17:26:34 +02:00
Sébastien Villemot 7d3afd3150
Update uncrustify.cfg for newer version
The configuration is still unsatisfactory for quite a few items.

[skip ci]
2022-07-13 18:55:29 +02:00
Sébastien Villemot 9e467fcf7b
Preprocessor update
– bugfixes in JSON output
– various refactorings
2022-07-12 18:17:56 +02:00
Sébastien Villemot a77f1f58b9 Merge branch 'JohannesPfeifer-master-patch-29602' into 'master'
Fix typo in Ramsey_steady_file.mod

See merge request Dynare/dynare!2052
2022-07-12 07:50:03 +00:00
Johannes Pfeifer b3a5a44c2b Fix typo in Ramsey_steady_file.mod 2022-07-12 09:48:36 +02:00