Sébastien Villemot
41fe087106
Block decomposition: static and dynamic files are now pure wrappers around the per-block files
...
Systematically call top-level static/dynamic files, instead of per-block ones.
2020-06-19 18:46:56 +02:00
Sébastien Villemot
0305b427a6
Block decomposition: use same orientation convention as oo_.endo_simul for matrix of simulated paths
...
Improves consistency, but also efficiency (less transpose needed).
2020-06-17 18:19:35 +02:00
Sébastien Villemot
20431ed312
Block decomposition: in the dynamic file, y and T are now vectors as in non-block mode
2020-06-17 18:19:21 +02:00
Sébastien Villemot
7bec234f7f
Block decomposition: for evaluate blocks, move the iteration loop outside the dynamic file
2020-06-15 18:29:42 +02:00
Sébastien Villemot
fae433fb18
Block decomposition: fix bug introduced in 0d11f8182a
2020-06-04 18:15:54 +02:00
Sébastien Villemot
0d11f8182a
Block decomposition: no longer compute deterministic simulation from dynamic.m file
...
By the way, fix bug where oo_ was not modified by solve_one_boundary.
Also convert oo_.deterministic_simulations.status to a boolean in the block
routines, for consistency with the non-block case.
2020-06-02 17:46:29 +02:00
Michel Juillard
b70d99d1b4
Refactoring of initval_file and histval_file
...
initval_file and hisvfal_file are now more flexible and have functionalities
similar to option datafile in estimation.
Closes : #1671
2020-05-14 16:45:54 +02:00
Michel Juillard
fd09b98150
fix bug when no convergence and backward model
2020-03-31 15:40:49 +02:00
Houtan Bastani
eb6ab0696a
gui: added fields to `oo_` to indicate which commands have been run
2020-03-03 11:45:46 +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
7e770f69e7
Remove workaround for errors in MEX files
...
Because at some point throwing exceptions from MEX files (with mexErrMsgTxt())
was not working under Windows 64-bit, we had designed a workaround to avoid
using exceptions.
Most MEX files were returning an error code as their first (or sometimes last)
argument, and that code would have to be checked from the MATLAB code.
Since this workaround is no longer needed, this commit removes it. As a
consequence, the interface of many MEX files is modified.
For some background, see https://www.dynare.org/pipermail/dev/2010-September/000895.html
2020-01-10 18:33:11 +01:00
Sébastien Villemot
a95358accc
Merge branch 'sim1' into 'master'
...
sim1.m: provide missing function input to nested function
See merge request Dynare/dynare!1691
2020-01-06 13:22:29 +00:00
Johannes Pfeifer
632c0a3943
sim1.m: provide missing function input to nested function
2020-01-06 09:06:18 +01:00
Sébastien Villemot
49dc997073
Global reindentation of MATLAB code (excluding submodules)
...
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Sébastien Villemot
efa6c6c682
“datafile” option of “perfect_foresight_setup” (and “simul”) now equivalent to “initval_file”
...
Ref. #1663
2019-12-19 14:58:54 +01:00
Michel Juillard
d0247277f9
after check, oo_.dr isn't empty but oo_.dr.ghx + friends don't exist
2019-11-25 21:54:53 +01:00
Michel Juillard
f6daa359b7
fix tolf and tolx options for sim1_purely_forward
2019-11-23 22:47:17 +01:00
Michel Juillard
2652cb0dd7
fix tolf and tolx options for sim1_purely_backward
2019-11-23 22:44:10 +01:00
Houtan Bastani
7712a02f02
add print and noprint option to perfect_foresight_solver. closes #1647
2019-09-12 14:50:14 +02:00
Houtan Bastani
3d6091b3a1
remove unused return arguments
2019-09-12 14:01:52 +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
Sébastien Villemot
f8af21819e
Simplify the interface to perfect_foresight_problem MEX
2019-07-09 14:33:17 +02:00
Sébastien Villemot
2ad6b31d76
Option endogenous_terminal_period is only available for stack_solve_algo=0
2019-07-04 18:37:27 +02:00
Sébastien Villemot
7d9b2a557b
perfect_foresight_problem MEX: number of threads is now configurable
2019-06-27 17:00:12 +02:00
Sébastien Villemot
5b591fac42
New perfect_foresight_problem MEX file
...
It constructs the stacked residuals and jacobian of the perfect foresight
problem.
It is an almost perfect replacement for the perfect_foresight_problem.m
routine, while being much more efficient.
Note however that the DLL never return complex numbers (it instead puts NaNs at
the place where there would have been complex). This may create problems for
some MOD files; the algorithms will need to be adapted to use a more
line-search method.
2019-06-24 17:53:59 +02:00
Sébastien Villemot
aedc9fb2e4
Bugfix: perfect_foresight_setup safety check does not correctly index M_.lead_lag_incidence
2019-06-18 17:01:06 +02:00
Sébastien Villemot
5a36d57b90
Perfect foresight: remove unused nnzJ argument in several stacked problem functions
2019-05-13 18:33:26 +02:00
Sébastien Villemot
088826a332
Perfect foresight: remove useless model evaluation
2019-05-13 18:33:26 +02:00
Stéphane Adjemian (Charybdis)
64dc44740b
Efficiency change.
2019-04-26 16:20:45 +02:00
Stéphane Adjemian (Charybdis)
99edfc52ed
Removed unused routine.
2019-04-26 15:55:48 +02:00
Stéphane Adjemian (Charybdis)
24cc67e585
Ensure that all perfect foresight solvers work with periods=1.
...
See #1205 and #1176 .
2019-04-26 15:55:48 +02:00
Houtan Bastani
ce97e51aec
small fixes
2019-03-06 14:01:29 +01:00
Houtan Bastani
c94401ea66
remove spurious semicolon
2019-01-02 18:00:21 +01:00
Houtan Bastani
42ad1a85ba
remove unnecessary find in statement
2019-01-02 17:56:45 +01:00
Houtan Bastani
24eb3bcb34
remove unnecessary brackets from strings
2019-01-02 17:56:35 +01:00
Sébastien Villemot
7a75872f72
Modernization: use tilde (~) syntax for ignored output arguments
2018-11-13 18:02:09 +01:00
Sébastien Villemot
d03cc56587
solve_algo=7 and stack_solve_algo=2 are now allowed under Octave
...
The gmres() function has been implemented (actually since Octave 3.4.1!).
2018-08-02 15:20:39 +02:00
Sébastien Villemot
a1b8bd39b2
Move the location of various generated files on the filesystem
...
- M and MEX files are now under +${MODELNAME}/
- bytecode, C source and JSON now under ${MODELNAME}/model/
2018-06-27 17:03:39 +02:00
Sébastien Villemot
79484607a7
Fix various issues with stack_solve_algo=7 and lags on exogenous > 1
...
Complete the fix started in 8913791ff0
.
Change the test case to prevent regressions.
2018-06-07 16:14:02 +02:00
Michel Juillard
8913791ff0
fixes bug for solve_algo = 10 and lags on exogenous variables
2018-06-07 12:21:58 +02:00
Johannes Pfeifer
224ccb7bab
sim1_linear.m: change hard-coded tolerance to option
...
The tolerance for the steady state check should depend on the accuracy of the steady state computation
2018-02-07 18:42:12 +01:00
Stéphane Adjemian (Scylla)
7be8f10e0e
Use cells of strings instead of char arrays.
2018-01-09 22:30:01 +01:00
Houtan Bastani
a51fef393a
aesthetic fix
2017-08-30 17:44:41 +02:00
Stéphane Adjemian (Scylla)
5429821719
Fixed incomplete commit 1a4257ac4b
.
2017-08-16 23:29:15 +02:00
Stéphane Adjemian (Scylla)
131a68ea6f
Provide more informations if expected shocks are declared after the terminal period.
2017-08-16 16:43:43 +02:00
Stéphane Adjemian (Scylla)
10047feee5
Test if shocks are declared.
...
Fixes bug introduced in 97b894a1cd
, if no shocks
are declared (for instance if the user is interested in the transition to the
steady state).
2017-08-16 16:04:15 +02:00
Johannes Pfeifer
97b894a1cd
Provide meaningful error message if oo_.exo_simul is larger than options_.periods
2017-08-16 16:00:55 +02:00
Stéphane Adjemian (Scylla)
1a4257ac4b
Efficiency change.
...
Reduced the size of the unnecessary large array for the exogenous variables
introduced in 57fd56c90a
.
2017-08-16 15:44:00 +02:00
Johannes Pfeifer
57fd56c90a
sim1_linear.m: Fix evaluation of dynamic model at deterministic steady state
...
Did not correctly account for exogenous variables being potentially present with leads and lags
2017-08-01 11:04:46 +02:00
Stéphane Adjemian (Charybdis)
1bf81c9f5a
Fixed copyright notices.
2017-05-18 18:36:38 +02:00