Commit Graph

14951 Commits (253c87b89430fd78ef5c48009758583704bd385d)

Author SHA1 Message Date
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 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
Sébastien Villemot b29dde227d
Preprocessor: various refactorings (mainly bytecode) 2022-07-08 16:05:33 +02:00
Sébastien Villemot f1d66eb756
Preprocessor update
– Fix interaction of temporary terms with steady_state operator.
  Incidentally, this implies that external functions can no longer be used inside
  steady_state operators.
– JSON output: remove duplicate “rhs” field when RHS of equation is non-zero
  constant
– Bytecode: remove hack for exogenous deterministic index
2022-07-05 17:10:44 +02:00
Sébastien Villemot 572fed3994
Merge branch 'dyn_forecast' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2051
2022-07-05 17:09:51 +02:00
Sébastien Villemot 84d744ea75
Merge branch 'DM' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2049
2022-07-05 17:09:31 +02:00
Sébastien Villemot b3cff2d34d
Bytecode: remove incomplete/buggy support for exogenous deterministic 2022-07-05 13:02:17 +02:00
Sébastien Villemot 888a87312d
Enable -Wunused-parameter for C++ MEX
Except for libdynare++, since Dynare++ is not ready (and is probably not worth
fixing by adding [[maybe_unused]] tags).
2022-07-05 12:12:53 +02:00
Sébastien Villemot 8be6f55bf6
Bytecode MEX: remove unused function parameters 2022-07-05 12:12:08 +02:00
Sébastien Villemot b05ef5dd7f
Bytecode MEX: remove unused function 2022-07-05 12:11:32 +02:00
Sébastien Villemot 218bb1a15f
k_order_welfare MEX: check number of arguments 2022-07-05 11:55:40 +02:00
Sébastien Villemot 0a9dc0137a
k_order_welfare MEX: fix documentation of output arguments 2022-07-05 11:55:33 +02:00
Johannes Pfeifer 35a25b8fb5 dyn_forecast.m: gracefully exit if decision rules and remove unused output argument 2022-07-04 17:33:20 +02:00
Sébastien Villemot 4195fa779d
Preprocessor update
– dyn_forecast: remove unused output argument
– Various refactorings
2022-07-04 15:20:40 +02:00
Sébastien Villemot fea1994a8e
Merge branch 'arima' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2048
2022-07-04 15:16:22 +02:00
Sébastien Villemot 5d048b998d
Merge branch 'cosmetics' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2047
2022-07-04 15:15:47 +02:00
Sébastien Villemot deb0f8b401
Merge branch 'ramsey_discount' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2046
2022-07-04 15:15:08 +02:00
Johannes Pfeifer 0f64652a73 identification_checks.m: fix comment 2022-06-28 09:44:05 +02:00
Johannes Pfeifer dbde8294cd disp_identification.m: account for non-boolean indicator
Related https://git.dynare.org/Dynare/dynare/-/issues/1860
2022-06-28 09:43:46 +02:00
Johannes Pfeifer 5788f1bc71 dynare_solve: deal with Dulmage-Mendelsohn decomposition returns a non-square block
Related to https://git.dynare.org/Dynare/dynare/-/issues/1851
2022-06-27 15:30:14 +02:00
Johannes Pfeifer 76885870ef testsuite: provide analytical steady state to unit root models instead of relying on initial values 2022-06-27 15:19:30 +02:00
Johannes Pfeifer 74672bb294 DsgeSmoother.m: delete redundant line 2022-06-27 11:23:19 +02:00
Johannes Pfeifer 77d6782cb4 evaluate_steady_state.m: check whether planner_discount is actually set for ramsey 2022-06-27 11:17:15 +02:00
Sébastien Villemot e9bb370ada
Preprocessor: bytecode refactorings 2022-06-24 14:11:04 +02:00
Sébastien Villemot 8dba4ec68c
Bytecode: minor fixes to debug mode 2022-06-24 12:53:19 +02:00
Sébastien Villemot 232d43d38b
Windows and macOS packages: bump to x13as version 1.1 build 58 2022-06-22 14:11:36 +02:00
Sébastien Villemot 8a0eb76b1b
Use operator""s to replace some calls to std::string constructor
By the way, remove other unnecessary calls to that constructor.
2022-06-22 12:51:08 +02:00
Sébastien Villemot 0107365f6a
Bytecode: stop using unsigned integers where signed ones avoid unnecessary casts 2022-06-20 17:52:01 +02:00
Sébastien Villemot 8bee62fa5e
Bytecode: directly use several enums inside instruction classes 2022-06-20 17:51:59 +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) f19ab66bab
Fix precision issue.
Introduced in patch 8b197bf71c which incidentally reduced the precision to six digits.
2022-06-17 16:48:35 +02:00
Sébastien Villemot a2d0ac3586
Bytecode: remove unused expression types 2022-06-17 16:32:59 +02:00