Commit Graph

12975 Commits (d24ad5ac99e5595f7472fe59cf16900f38545f1e)

Author SHA1 Message Date
Sébastien Villemot d24ad5ac99
CI: fix triggering of deploy jobs
The deploy jobs were broken since ffbdd6f528.
2020-01-29 21:14:41 +01:00
Stéphane Adjemian (Odysseus) 1c5f6a97c0 Fixed bug in cherry-picking (LHS expressions were wrong).
For instance LHS expression as `diff(log(X))` was replaced by `X` in
the generated model.inc file.
2020-01-29 18:34:26 +01:00
Stéphane Adjemian (Odysseus) d5e2b0f9f8 Updated integration test with new interface for aggregate routine. 2020-01-29 18:28:35 +01:00
Stéphane Adjemian (Odysseus) b00db0e035 Fixed bug (cannot use a reserved keyword as a tag name). 2020-01-29 18:27:29 +01:00
Stéphane Adjemian (Odysseus) 9590175a9a Fixed loadjson_ routine (when relying on jsondecode).
Fixed issues with escape characters and updated the preprocessor.
2020-01-29 15:54:54 +01:00
Stéphane Adjemian (Odysseus) e39c3bad5b Fixed aggregate if the equation tag name is not available...
... Or has special characters. In this cases we use the LHS variable
as a name for the equation.
2020-01-29 11:38:20 +01:00
Stéphane Adjemian (Odysseus) bb302279ea Do not add tag for block name if rootfolder is empty. 2020-01-29 09:25:23 +01:00
Stéphane Adjemian (Charybdis) d4e16b7ffe
Ensure that the equation tag name matches the LHS variable. 2020-01-28 16:40:31 +01:00
Stéphane Adjemian (Charybdis) dc1b2442db
Added block name to the tags in aggregated models. 2020-01-28 16:40:03 +01:00
Stéphane Adjemian (Charybdis) 32557ce686
Ensure that equations and endogenous variables are unique. 2020-01-28 16:38:15 +01:00
Stéphane Adjemian (Charybdis) 6924e07b20
Use jsondecode to read JSON files if available. 2020-01-28 16:36:40 +01:00
Stéphane Adjemian (Charybdis) 455c806e11
Updated dseries submodule. 2020-01-27 14:03:28 +01:00
Stéphane Adjemian (Charybdis) 3fcca321a2
Bug fixes.
- cherrypick routine was not returning the correct lists of endogenous
   and exogenous variables. The number of endogenous variables was even
   not matching the number of equations.
 - In some cases LHS expressions were not preprocessed to extract the
   name of an endogenous variable.
 - Return a non cryptic error message if more than one endogenous
   variable appears in the LHS.
2020-01-27 14:02:03 +01:00
Stéphane Adjemian (Charybdis) 7e849f01ad
Code factorization. 2020-01-27 14:02:03 +01:00
Sébastien Villemot ffbdd6f528
CI: replace deprecated “only” syntax by “rules:if”
Also remove useless deploy jobs from the master branch.
2020-01-21 10:08:23 +01:00
Stéphane Adjemian (Charybdis) e92fa493a2
Updated dseries submodule. 2020-01-17 18:43:11 +01:00
Stéphane Adjemian (Charybdis) 274b9371f3
Updated dseries submodule. 2020-01-09 17:54:38 +01:00
Stéphane Adjemian (Charybdis) b33c2c3ce2
Updated dseries submodule (bug fixes in backcast method). 2020-01-06 18:38:20 +01:00
Stéphane Adjemian (Charybdis) a40a940d51
Same as 8aa86a22 in Iterative OLS. 2020-01-06 11:03:58 +01:00
Stéphane Adjemian (Charybdis) 8aa86a2244
Save the list of parameter names in pac estimation results (NLS). 2020-01-06 11:03:26 +01:00
Stéphane Adjemian (Charybdis) 4b7f8f21d8 Updated dseries submodule (Fixes for Octave and old Matlab versions). 2019-12-14 10:43:54 +01:00
Stéphane Adjemian (Charybdis) 4fb7ec7f4c Updated dseries submodule (added backcast method). 2019-12-13 14:59:14 +01:00
Stéphane Adjemian (Charybdis) 30cfe6bfc5 Updated dseries submodule (added nanmean method). 2019-12-12 18:17:07 +01:00
Stéphane Adjemian (Charybdis) 98de4e4427 Less cryptic error message when variable is missing in the database. 2019-12-10 22:40:23 +01:00
Sébastien Villemot 31d29cd217 Merge branch 'enterprise' into 'enterprise'
Implement waitbar in olsgibbs, surgibbs.

See merge request Enterprise/dynare!11
2019-12-10 21:35:25 +00:00
Dóra Kocsis ce16bbfb8c Implement waitbar in olsgibbs, surgibbs. 2019-12-10 17:03:46 +01:00
Sébastien Villemot a46ae4cfb1 Merge branch 'enterprise' into 'enterprise'
Return YhatOrig and Yobs in dyn_ols, olsgibbs, sur, surgibbs.

See merge request Enterprise/dynare!10
2019-12-10 15:57:23 +00:00
Dóra Kocsis 665cd764b8 Return YhatOrig and Yobs in dyn_ols, olsgibbs, sur, surgibbs. 2019-12-10 15:44:14 +01:00
Sébastien Villemot 6f91bde894
Merge remote-tracking branch 'community/master' into enterprise 2019-12-06 16:10:09 +01:00
Sébastien Villemot 8586fea2b9
Preprocessor: under Windows, apply the workaround for +<basename> removal to +objective subfolder 2019-12-06 15:25:00 +01:00
Sébastien Villemot c646736b9b
Emacs mode: update for recent additions to the language 2019-12-06 15:24:48 +01:00
Houtan Bastani a77472772f
doc: update macOS min version and document package installation 2019-12-06 14:58:19 +01:00
Houtan Bastani 5e429f8c92
update preprocessor
- fix bug with cbrt
- fix latex output
- add compilation_setup command. closes preprocessor#35
- fix bugs with initial_condition_decomposition. preprocessor#37
2019-12-06 14:58:19 +01:00
Houtan Bastani fa493bc10a
doc: fix typo 2019-12-06 14:58:19 +01:00
Houtan Bastani dec7d4fdb4
dynare.m: simplify code 2019-12-06 12:01:58 +01:00
Houtan Bastani 3a223e9c08
fix uncommon bug in parsing dynare command line options
previously, `nopathchange` and `nopreprocessoroutput` were set even if they were values instead of option names.

`nopathchange` would further remove all options that contained `'nopathchange'`

e.g. `dynare example1.mod savemacro=nopathchange` would erroneously set `nopathchange` to true and would delete the `savemacro` option altogether

In the fix, just check that the match starts in position 1 as, if the argument passed is longer than the matching pattern (e.g. nopathchangee), the preprocessor will stop processing with a usage error
2019-12-06 12:01:57 +01:00
Houtan Bastani 5c9476fb57
return YhatOrig in dyn_ols and olsgibbs as the non-transformed Yhat 2019-12-06 10:01:28 +01:00
Stéphane Adjemian (Charybdis) 34a1605a02 Updated git submodule.
[ci skip]
2019-12-05 12:15:36 +01:00
Stéphane Adjemian (Charybdis) 2184195826 Updated dseries submodule.
[ci skip]
2019-12-05 12:10:36 +01:00
Sébastien Villemot fe0fdf2ccb
Fix Fortran flags under MEX for MATLAB
There was a typo in fedeeaad9f.

By the way, use the modern Fortran compiler when trying to detect slicot.
2019-12-03 18:48:19 +01:00
Sébastien Villemot 8d21c5a068 Merge branch 'enterprise' into 'enterprise'
Fix print_equations

See merge request Enterprise/dynare!9
2019-12-03 16:20:27 +00:00
Sébastien Villemot 6a26926892
Add new block_trust_region MEX
This MEX solves nonlinear systems of equations using a trust region algorithm.
The problem is subdivided in smaller problems by doing a block
triangularisation of the Jacobian at the guess value, using the
Dulmage-Mendelsohn algorithm.

The interface of the MEX is simply:

  [x, info] = block_trust_region(f, guess_value);

Where f is either a function handle or a string designating a function.
f must take one argument (the evaluation point), and return either one or two
arguments (the residuals and, optionally, the Jacobian).

On success, info=0; on failure, info=1.
2019-12-03 16:17:16 +01:00
Sébastien Villemot 93bd817ccb
Add Fortran 2008 interface for a subset of BLAS/LAPACK functions 2019-12-03 16:17:12 +01:00
Sébastien Villemot ba466d22c8
Add Fortran 2008 interface for a subset of MEX functions 2019-12-03 16:17:08 +01:00
Sébastien Villemot fedeeaad9f
Add support for Fortran 2008 in MEX files
By the same token, remove unused support for Fortran 77.
2019-12-03 16:17:00 +01:00
Dóra Kocsis da201b29c1 Fix print_equations 2019-12-03 16:01:42 +01:00
Sébastien Villemot 6a89783b65
Merge remote-tracking branch 'community/master' into enterprise 2019-12-03 15:39:59 +01:00
Sébastien Villemot 3159162d76
Preprocessor update
- systematic recursive ordering of auxiliary equations (preprocessor#22)
- interface for init2shocks (#1650)
2019-12-03 14:29:08 +01:00
Sébastien Villemot 999cb15601 Merge branch 'enterprise' into 'enterprise'
Fix olsgibbs residual output.

See merge request Enterprise/dynare!8
2019-12-03 11:04:54 +00:00
Houtan Bastani 415ed5b2d5
document dseries constructor that takes tables as arguments
Closes #1359
2019-12-03 11:26:28 +01:00