Commit Graph

1188 Commits (d5f90c837667c86ab2f593c05aa94feab3912898)

Author SHA1 Message Date
Johannes Pfeifer a4030c3676 testsuite: update ramsey_model to new command sequence using ramsey_model
Related to https://git.dynare.org/Dynare/dynare/issues/1678
2019-12-13 14:18:15 +01:00
Marco Ratto 2edf6d05a3 added testing for flip diff and init2shocks 2019-12-12 16:53:45 +01:00
Houtan Bastani 32872362b3
introduce changes to epilogue block
preprocessor#36
- detrend epilogue statements
- write names of epilogue variables in `M_.epilogue_names`
- output list of endogs used in epilogue equations in `M_.epilogue_var_list_`
- output static and dynamic epilogue files
2019-12-11 16:30:37 +01:00
Houtan Bastani 40e4317ef2
macro processor test file: remove utf-8 character from variable 2019-12-10 16:53:12 +01:00
Houtan Bastani 2017b32f31
fix bug in macro processor with short circuit operators || and &&
#1676
2019-12-10 16:53:12 +01:00
Dóra Kocsis b9af92eb8a Save conditional forecast output in oo_. Closes: Dynare/dynare#1672 2019-11-29 15:25:05 +01:00
Houtan Bastani 3ef8564279
reporting: add ability to make title page 2019-11-29 11:36:00 +01:00
Johannes Pfeifer 0c01c31491 Remove global variables from user-defined steady state files
M_ and options_ are now passed as an input; params is an output as in the _steadystate2.m files
2019-11-26 17:05:14 +01:00
Johannes Pfeifer fc6c78e5ea testsuite: transform old steady state files to steady_state_model-blocks
Allows for easier maintenance
2019-11-26 17:02:12 +01:00
Sébastien Villemot 8065e9d439
Build system: by default, error out if some dependency is missing
In particular, if either MATLAB or Octave is missing, one needs to pass either
--disable-matlab or --disable-octave.

Moreover, several new configure flags have been introduced for disabling some
components:
--disable-doc
--disable-dynare++
--disable-mex-dynare++
--disable-mex-ms-sbvar
--disable-mex-kalman-steady-state
2019-11-26 13:53:42 +01:00
Houtan Bastani 7a320d2944
fix macro processor bug that resulted in incorrect casts from string to bool 2019-11-26 11:19:15 +01:00
Michel Juillard cc0f2865a6 use tolf option inside simul() 2019-11-24 09:56:35 +01:00
Sébastien Villemot 628a8a6ff3
Testsuite: remove obsolete conditionals for testing whether Octave version > 3.4
We now support Octave ≥ 4.2 only.

By the way, in another test, use the isoctave function instead of manual test.
2019-11-19 15:25:59 +01:00
Sébastien Villemot 12d7d8cef2
Testsuite: use XLSX for Octave and MATLAB ≥ R2012a, and XLS for MATLAB < R2012a
In 98bdf76581, all XLSX files were removed in
favour of XLS, for compatibility with MATLAB R2009b.

But this broke the very same tests under Octave, since XLS support is not very
good there.

This commit implements a solution that works everywhere, by using XLSX whenever
possible, and XLS otherwise.
2019-11-19 12:49:01 +01:00
Sébastien Villemot e04ccd9b01
Fix construction of source tarball
Was broken by the previous commit, which renamed some datafile without updating
EXTRA_DIST in tests/Makefile.am.
2019-11-15 22:49:45 +01:00
Sébastien Villemot 98bdf76581
MATLAB R2009b compatibility fixes
— use XLS instead of XLSX in testsuite datafiles
— use optimset instead of optimoptions
— use quadv/quadl/quadgk instead of integral
— fix race condition in load_m_file_data_legacy.m tests
— use fallback implementation for intersect(…, 'stable')
2019-11-15 18:27:37 +01:00
Sébastien Villemot 42f172dec3
perfect_foresight_problem MEX: optimization for linear models
When the model is linear, there is no need to reevaluate the Jacobian for each
time period, since it is invariant.

Closes: #1662
2019-11-14 14:45:10 +01:00
Houtan Bastani 43c73a74c8
test for matlab namespace function in steady_state_model block. closes #1639 2019-10-09 16:39:33 +02:00
Houtan Bastani cd83a7790e
add .m files from 4a1b5eccb2 to EXTRA_DIST
[skip ci]
2019-10-09 16:35:32 +02:00
Houtan Bastani 4a1b5eccb2
Support MATLAB namespaces in function calls #1639
shorten test names because adding `_namespace` made some .mod file names too long
2019-10-09 16:22:32 +02:00
Sébastien Villemot b3d1e8412b
Add support for mode_compute=1 under Octave
Since version 1.6, the optim Forge package has an implementation of fmincon.
Hence we can now use mode_compute=1 under Octave.

This commit also adds tests/optimizers/fs2000_1.mod to the testsuite. It will
be skipped under MATLAB if the optimization toolbox is not there, or under
Octave if optim ≥ 1.6 is not there.
2019-10-08 18:38:15 +02:00
Houtan Bastani 32932ce741
preprocessor: submodule update 2019-10-02 10:32:01 +02:00
Houtan Bastani 715ae0ce39
preprocessor: submodule update 2019-09-30 12:28:29 +02:00
Sébastien Villemot 42392df3bc
Put binary test datafiles in the git repository
This makes the testsuite robust to network failures.
2019-09-19 14:20:00 +02:00
Houtan Bastani e043c60903
pass M_, options_, oo_ as arguments to stoch_simul, simult_, discretionary_policy. closes dynare#1197 2019-09-12 11:57:01 +02:00
Houtan Bastani 53ce6222c2
remove unused variable in dynare_config 2019-09-05 11:48:19 +02:00
Sébastien Villemot b73f5b7816
Compatibility fix for Octave 5
The sleep() function has been removed in favor of pause().
2019-08-22 17:03:19 +02:00
Houtan Bastani 5994321cd7
preprocessor: submodule update 2019-08-19 16:58:14 +02:00
Houtan Bastani ea06dfbcd5
add tests for casting and range in macro processor 2019-08-07 11:30:16 -04:00
Houtan Bastani f2b61b3e9e
submodule update: preprocessor; doc: introduce comprehensions 2019-06-26 15:09:55 +02:00
Houtan Bastani cb0e84a2c4
submodule update: preprocessor 2019-06-25 10:12:20 +02:00
Houtan Bastani 69229b6b2a
submodule update: preprocessor 2019-06-24 11:16:21 +02:00
Houtan Bastani 42e8b55274
add macro test to file 2019-06-24 11:16:21 +02:00
Houtan Bastani b4d2239da2
submodule update: preprocessor: rework macroprocessor 2019-06-21 17:11:14 +02:00
Houtan Bastani 13547964dc
change graph in reporting test to show how to associate integers with time periods 2019-05-10 11:02:46 +02:00
Sébastien Villemot b0841b4136
Fix test files following change in the preprocessor when there is no parameter or exogenous 2019-04-30 16:42:53 +02:00
Sébastien Villemot b2957127ad
k-order DLL: check that simulated time series at order 9 is correct
Ref #217
2019-04-29 15:48:03 +02:00
Sébastien Villemot 7ddf3046b7
Improve description of k-order tests 2019-04-29 15:46:47 +02:00
Sébastien Villemot f1b16ced4e
k-order DLL: check computed policy functions at order 9 against Burnside's model
Ref #217
2019-04-26 18:46:04 +02:00
Stéphane Adjemian (Charybdis) 64dc44740b Efficiency change. 2019-04-26 16:20:45 +02:00
Sébastien Villemot c5c1307725
Minor simplification 2019-04-26 14:44:36 +02:00
Stéphane Adjemian ee891948e0 Moved IntegrationAgorithm under options_.ep.stochastic 2019-04-18 18:03:57 +02:00
Stéphane Adjemian 62b0106dde Streamlined extended path examples. 2019-04-18 18:03:57 +02:00
Michel Juillard d6866b2e6b fixed saving of pseudo_data variables 2019-04-18 18:03:57 +02:00
Sébastien Villemot 774e60f04c
options_.risky_steadystate is an (undocumented) boolean value
By the way, enable the option in example1_korder.mod (it does not work, but no
harm since it’s not in the testsuite).
2019-04-02 19:16:13 +02:00
Sébastien Villemot d1df9317ab
Indentation fixes (tabs are meaningful in Makefiles) 2019-03-25 18:47:49 +01:00
Sébastien Villemot e7dfc6ab36
The MATLAB testsuite now works under Windows, so no need to special-case it 2019-03-25 18:47:49 +01:00
Sébastien Villemot 0f28974c2c
Provisions for MATLAB R2019a
In particular, use the new "-batch" option for running the testsuite.
2019-03-22 16:43:40 +01:00
Sébastien Villemot 4a62fbb687
Remove spurious file in EXTRA_DIST, introduced in 666c9b8003 2019-03-21 18:30:44 +01:00
Sébastien Villemot 44b50d41ae
Fix EOL convention of some files add in 666c9b8003 2019-03-20 16:49:52 +01:00