Sébastien Villemot
89a3e94cbf
Use true/false instead of 1/0 for boolean options
...
This is more elegant, and makes it easier to distinguish them from integer
options.
Also simplify test expressions for these boolean options.
2019-03-19 15:21:16 +01:00
Sébastien Villemot
a357003ba7
Octave compatibility fix
2019-03-08 15:59:51 +01:00
Sébastien Villemot
7a2d5d4f0e
1st order approximation: fix for purely-forward models
...
Closes #1641
2019-03-08 15:54:10 +01:00
Houtan Bastani
6f80abd1f8
gui: various fixes to perfect foresight
2019-03-06 14:11:25 +01:00
Houtan Bastani
ce97e51aec
small fixes
2019-03-06 14:01:29 +01:00
Houtan Bastani
67df1d2df1
clarify field names
2019-03-06 14:01:29 +01:00
Houtan Bastani
1abec862e1
gui: if no unanticipated shocks, run simulation and return
2019-03-06 14:01:29 +01:00
Houtan Bastani
16dfc206bf
gui: fix up initval and endval: don’t start at simulation at steady state; initialize endogenous variables as well
2019-03-06 14:01:29 +01:00
Stéphane Adjemian (Charybdis)
580939d70b
Cosmetic, strmatch() -> find(strcmp()).
...
[skip ci]
2019-02-28 21:23:05 +01:00
Stéphane Adjemian (Charybdis)
e1f1fd2de3
Updated header.
...
We recently added leads on first differences as an auxiliary variable type.
[skip ci]
2019-02-28 10:23:23 +01:00
Stéphane Adjemian (Charybdis)
3400e13c06
Return 0 if the input is not the name of an endogenous variable.
...
Also removed the call to deprecated strmatch.
[skip ci]
2019-02-28 10:15:08 +01:00
Stéphane Adjemian (Charybdis)
45fbfe4dce
Adapted disp_dr for new auxilary variables.
...
diffs, lagged diffs and leaded diffs.
2019-02-25 17:18:54 +01:00
Sébastien Villemot
d4217c02b0
Provisions for Octave 5
2019-02-25 15:28:24 +01:00
Sébastien Villemot
870d75857c
Simplification for missing nanmean
...
Handle it as other functions from the Statistics toolbox
2019-02-25 15:28:23 +01:00
Stéphane Adjemian (Charybdis)
d81545941e
Cosmetic changes.
2019-02-25 14:54:57 +01:00
Stéphane Adjemian (Charybdis)
d6e6b29620
Removed unused global it_.
2019-02-25 14:54:57 +01:00
Stéphane Adjemian (Charybdis)
84cdf6d142
Removed unnecessary square brackets.
2019-02-25 14:54:56 +01:00
Sébastien Villemot
414b0a19b6
Fix error message of makedataset
2019-02-19 18:57:17 +01:00
Sébastien Villemot
1f84bc051d
Under Octave, the "statistics" Forge package is now a requirement
...
The gamrnd fallback under matlab/missing/stats/ does not work under Octave
because the +gamrnd/ folder is not accessible (it has the same name as the
function, which does not work under Octave).
Instead of fixing this, rather make the statistics toolbox a requirement, since
anyways it is very easy to obtain under Octave.
Accordingly:
- do not try to run the unit tests of matlab/missing/stats/ under Octave
- merge the matlab/missing/stats-matlab/ into matlab/missing/stats/, since this
directory is now MATLAB-only.
Also:
- move matlab/distributions/+gamrnd/ under matlab/missing/stats/ for
consistency
- in the manual: remove obsolete link to Octave downloads on the Dynare
website; update URL of Octave Forge
Closes #1638
2019-02-18 17:41:10 +01:00
Sébastien Villemot
0b1c465b38
Octave compatibility fix: intersect(..., 'stable')
...
The 'stable' option of intersect(), which keeps the element order of the first
argument, is not available on Octave. Provide a fallback implementation, and
adapt the code.
2019-02-15 18:43:19 +01:00
Houtan Bastani
b89e3b2e85
steady: various simplifications
...
(cherry picked from commit 31ec5ac90abf3ece558b1c7d0fab3e5baea54e02)
2019-02-15 17:11:38 +01:00
Stéphane Adjemia (Scylla)
3cb3b4aee5
Allow models with leads in bgp.write().
...
Also added tests to check that we are able to identify the Balanced Growth
Path, note that it does not work with tests/bgp/fs2000.mod.
2019-02-15 16:59:26 +01:00
Sébastien Villemot
5011b94aa7
Update dseries submodule
2019-02-14 19:01:56 +01:00
Stéphane Adjemia (Scylla)
e9688560f6
Allow initialization with histval block.
...
[skip ci]
2019-02-11 16:57:20 +01:00
Stéphane Adjemia (Scylla)
219d2bb31b
Updated dseries submodule.
2019-02-10 00:02:14 +01:00
Houtan Bastani
fd880a9387
gui: other simplifications/aesthetic changes
2019-02-07 19:02:35 +01:00
Houtan Bastani
922536e4ea
gui: rework transitory shocks
2019-02-07 19:02:35 +01:00
Houtan Bastani
aef31e25e8
gui: rework permanent shocks
2019-02-07 19:02:35 +01:00
Houtan Bastani
6b4a9b300c
gui: initialize M_.det_shocks to []
2019-02-07 19:02:35 +01:00
Houtan Bastani
ae5dbdee9f
gui: no need to specify indices
2019-02-07 19:02:34 +01:00
Houtan Bastani
a6549397a0
change folder name as `-` prevented recognition of the file
2019-02-05 18:08:34 +01:00
Houtan Bastani
0ad8bfbd16
gui: clean up file
2019-02-05 18:04:09 +01:00
Houtan Bastani
ce3be98aa0
gui: potentially return output as JSON string
2019-02-05 17:49:08 +01:00
Houtan Bastani
67a7e43573
gui: pass JSON as string
2019-02-05 17:49:08 +01:00
Houtan Bastani
99060b0f80
gui: small improvements
2019-02-05 17:49:08 +01:00
Sébastien Villemot
b2fa7dd3c1
Merge branch 'discret_error_message' into 'master'
...
discretionary_policy_1.m: check for NaN before checking for non-zero derivatives
See merge request Dynare/dynare!1644
2019-02-05 14:42:33 +00:00
Johannes Pfeifer
d5e25c8f43
mr_hessian.m: prevent infinite loop
...
Make sure hessian is not 0 and add counter.
Fixes #1636
2019-02-05 10:00:54 +01:00
Johannes Pfeifer
8cb99bfe9d
discretionary_policy_1.m: check for NaN before checking for non-zero derivatives
...
Prevents false error message
2019-02-05 09:14:20 +01:00
Stéphane Adjemia (Scylla)
5c75c30104
Fixed matlab warning.
...
[skip ci]
2019-02-04 16:26:48 +01:00
Stéphane Adjemian
768555b523
Merge branch 'fixes_4.6' into 'master'
...
Fixes 4.6
See merge request Dynare/dynare!1641
2019-02-04 10:19:05 +00:00
Stéphane Adjemia (Scylla)
b7c60ddf59
Added a routine for writing the problem to be solved to compute the BGP of a model.
...
- Only works with backward models.
- Probably doesn't work if the model includes auxiliary variables.
- Assumes that the trends are multiplicative.
2019-02-04 10:04:33 +01:00
Houtan Bastani
18b006d46f
fix comments
2019-02-01 16:45:13 +01:00
Houtan Bastani
f29d974410
add copyright and fix spacing
2019-02-01 16:42:32 +01:00
Sumudu Kankanamge
31d59d6be3
-add file to read JSON gui perfect-foresight
2019-02-01 14:54:52 +01:00
Houtan Bastani
a68f3fc082
remove unused output from functions
2019-01-31 16:11:35 +01:00
Houtan Bastani
d32de4deae
preprocessor, reporting: submodule update
2019-01-28 15:47:40 +01:00
Sébastien Villemot
cfc81bc5ff
Update preprocessor and dseries submodules
2019-01-28 15:16:37 +01:00
Houtan Bastani
d15c998804
reporting: submodule update
2019-01-25 18:02:16 +01:00
Stéphane Adjemia (Scylla)
3690dc2e6f
Updated dseries submodule.
2019-01-23 17:26:08 +01:00
Stéphane Adjemia (Scylla)
2482eafdb7
Fixed dseries class initialization in Octave.
2019-01-23 15:49:55 +01:00