Commit Graph

13354 Commits (046960c4a88cdb45aa853843fc244f171be88ada)

Author SHA1 Message Date
Sébastien Villemot b5de8b1835
Windows package: bump to Octave 5.2.0_1 (rebuild of 5.2.0) 2020-02-10 18:24:54 +01:00
Sébastien Villemot ae59f4dcb2
Further improvements to parsing of arguments on the MATLAB command-line
Under GNU/Linux and macOS, double-quote arguments before passing them to the
shell. In particular, this allows passing single-quotes within those arguments.

We therefore have to escape the four characters that are interpreted within
double-quoted strings in POSIX shells: \, ", $ and `

On Windows, also systematically escape the backslashes.

Also move display of arguments before escaping, so that it remains readable.

Ref. #1696
2020-02-10 18:24:51 +01:00
Stéphane Adjemian (Charybdis) 004d0fa30b
Updated dseries submodule (added projection method). 2020-02-10 17:15:31 +01:00
Sébastien Villemot ae3f150c99
MS-SBVAR MEX: various simplifications and modernizations 2020-02-10 16:25:03 +01:00
Houtan Bastani 72dfbbdce2
fix bug in creation of latex tables
[skip ci]
2020-02-07 15:58:15 +01:00
Sébastien Villemot 4c256c2cc8 Merge branch 'discretion' into 'master'
Fixes related to estimation under discretion

See merge request Dynare/dynare!1707
2020-02-06 13:37:52 +00:00
Johannes Pfeifer 30bfa16211 Fixes related to estimation under discretion 2020-02-06 13:30:00 +01:00
Sébastien Villemot f5c4cd5372 Merge branch 'cond_forecast' into 'master'
imcforecast.m: make sure that draw index for CIs stays within feasible bounds

See merge request Dynare/dynare!1706
2020-02-06 09:19:40 +00:00
Johannes Pfeifer 1d1c0ab829 imcforecast.m: make sure that draw index for CIs stays within feasible bounds 2020-02-05 21:18:25 +01:00
Houtan Bastani 931ebece92
Remove options `noemptylinemacro` and `nolinemacro`; add option `linemacro` 2020-02-05 16:16:31 +01:00
Houtan Bastani 8043f5b35b Merge branch 'patch-1' into 'master'
noemptylinemacro: Add missing word

See merge request Dynare/dynare!1705
2020-02-05 12:39:55 +00:00
Johannes Pfeifer eaacb57d5c noemptylinemacro: Add missing word to 2020-02-05 11:30:58 +00:00
Sébastien Villemot d8cd55109c
Testsuite: increase tolerance in unitary tests for prior_draw.m 2020-02-04 21:25:16 +01:00
Sébastien Villemot 68a96c7c50
Preprocessor update
— do not allow the estimation of a parameter that appears in
  “planner_discount” (#1173)
— macro processor: fix bug in file reported when error encountered after a file
  has been included (preprocessor#42)
2020-02-04 18:19:36 +01:00
Sébastien Villemot a8e54d791a
Testsuite: set the random seed for unitary tests, for reproducibility 2020-02-04 18:19:35 +01:00
Houtan Bastani 2ae1bc7770
gui: update call to stoch_simul 2020-02-04 15:57:56 +01:00
Sébastien Villemot 7a5a604c7d
Windows package: bump to Octave 5.2.0 2020-02-04 12:01:46 +01:00
Sébastien Villemot 4d809464b0
README.md: on Debian, texlive-generic-extra has been replaced by texlive-plain-generic 2020-02-04 10:23:14 +01:00
Stéphane Adjemian (Charybdis) 190873317b
Package texlive-math-extra is no more available in Debian buster.
[skip ci]
2020-02-04 09:55:38 +01:00
Sébastien Villemot 177c5c359f
Implement estimation under discretionary optimal policy
Also add a test case.

For the time being, estimating parameters that appear in the discount factor is
not supported.

Ref. #1173
2020-02-03 18:29:45 +01:00
Stéphane Adjemian (Charybdis) 48b5005ed3
More factorizatiion when calling loadjson_ routine. 2020-02-03 18:12:14 +01:00
Sébastien Villemot 59e11615a0
Discretionary policy: preparatory work for estimation
This removes global variables from discretionary_policy_1.m, and also adapts
the behaviour and interface of the function so that it is similar to
resol.m (in particular, it no longer returns an empty “dr” in case of failure,
and it sets “oo_.dr”).

Ref. #1173
2020-02-03 18:05:29 +01:00
Sébastien Villemot 929b34a168 Merge branch 'det_cond_forecast' into 'master'
det_cond_forecast.m: always set options_.qz_criterium

Closes #1701

See merge request Dynare/dynare!1704
2020-02-03 11:16:10 +00:00
Stéphane Adjemian (Charybdis) 3521e83b26
Factorize calls to loadjson_ routine. 2020-02-02 21:52:44 +01:00
Stéphane Adjemian (Charybdis) 1e0da3a6a7
Removed global. 2020-02-02 21:14:23 +01:00
Johannes Pfeifer 8aad715183 det_cond_forecast.m: always set options_.qz_criterium
Closes https://git.dynare.org/Dynare/dynare/issues/1701
2020-02-02 14:15:01 +01:00
Sébastien Villemot 05e43a5025
Remove obsolete Julia stuff 2020-01-31 22:50:55 +01:00
Stéphane Adjemian (Charybdis) 0aa78c6914
Added the possibility to change more than one variable name in an equation. 2020-01-31 18:57:22 +01:00
Stéphane Adjemian (Charybdis) d136be8a84
Updated preprocessor submodule (added issing include). 2020-01-31 17:47:34 +01:00
Sébastien Villemot 9bcdfee490 Merge branch 'smoother2histval' into 'master'
fs2000_simul.mod: make sure we use the estimated parameter vector

See merge request Dynare/dynare!1703
2020-01-31 13:49:08 +00:00
Johannes Pfeifer 6cf5e6495a fs2000_simul.mod: make sure we use the estimated parameter vector
Makes the simulation converge without turning to homotopy
2020-01-31 13:22:47 +01:00
Stéphane Adjemian (Odysseus) 5289636f69 Do not include the original names of the transformed endogenous variables. 2020-01-30 20:31:21 +01:00
Stéphane Adjemian (Odysseus) 3dbc7640d9 Fixed list of exogenous variables in cherry-picking. 2020-01-30 19:21:50 +01:00
Sébastien Villemot 25ccb6686f
Merge branch 'JohannesPfeifer/dynare-discretion' 2020-01-30 15:46:38 +01:00
Sébastien Villemot 7e63ac28b2
Preprocessor: fix “planner_discount” option of “discretionary_policy”
Closes: #1699
2020-01-30 15:44:49 +01:00
Stéphane Adjemian (Odysseus) 95acf31a69 Fixed optional renaming of the variables. 2020-01-30 11:46:17 +01:00
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
Sébastien Villemot 6542ce4a16
datatomfile: fix the name of the .mod file at the top of the generated file
With the new layout of the files generated by the preprocessor, it would always
print “driver.m”, which is not very informative.
2020-01-29 21:04:45 +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
Johannes Pfeifer 9e82432f87 Gali_discretion.mod: filter out NaN in planner_objective
Related to https://git.dynare.org/Dynare/dynare/issues/1699
2020-01-29 17:48:16 +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
Houtan Bastani d527096e61
simplify parsing of MATLAB command line arguments
closes #1696

includes preprocessor changes
- Removed prefixing of doubles between -1 and 1 with 0.
- Fixed bug introduced in 985d742.
- macro processor: simplify handling of `@#define`
2020-01-29 14:56:52 +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