Sébastien Villemot
e9474ae9cc
Histval: fixed bug for exogenous introduced in previous commit
2010-10-20 14:56:35 +02:00
Sébastien Villemot
615f2ae322
Histval block:
...
- fail when user tries to initialize a variable at a period which is not in the model, and make the error message explicit
- correctly handle exogenous variables in stochastic mode, which are also substituted with an aux var
- added test files
2010-10-20 14:47:03 +02:00
Sébastien Villemot
855fdf8c16
Preprocessor: fix possible bug in histval (need to limit search of aux vars to aux vars for lagged vars, otherwise we could have a wrong match with some other kind)
2010-10-20 11:39:09 +02:00
Houtan Bastani
a7fc3361ac
trend_var, growth_factor, deflator: stationarize a nonstationary model and test
2010-10-18 16:07:42 +02:00
Houtan Bastani
0782dd57e3
add preprocessor simplification rule
2010-10-18 15:51:07 +02:00
Ferhat Mihoubi
810416ebe6
- Extends the algorithms compatible with bytecode to compute the steady-state (ticket #11 ). The new values for solve_algo are:
...
* 0: fsolve
* 1: solve1
* 2, 4: solve1 + block decomposition
* 3: csolve
* 5: LU decomposition with UMFPack (method handling sparse matrix in Matlab)
* 6: GMRES
* 7: BiCGStab
* 8: bytecode own solver (use Gaussian elimination + sparse matrix)
- Bytecode can now evaluate a specific block instead of the overall blocks (new bytecode's option 'Block = block_number')
2010-10-11 19:21:32 +02:00
Sébastien Villemot
d973c2ead7
Preprocessor: give more explicit error message when lead or lag is used inside 'planner_objective'
2010-10-11 14:49:23 +02:00
Sébastien Villemot
3218d3c72f
Preprocessor: don't create auxiliary variables for expressions appearing only
...
in unused model local variables
2010-10-11 12:58:38 +02:00
Houtan Bastani
5327f161d4
external_function: add support for use_dll
2010-10-07 18:05:07 +02:00
Houtan Bastani
85564b287c
external_function: modified to pass functions as string names as opposed to function handles to reduce number of calls to mexCallMatlab when use_dll option is invoked
2010-10-07 16:49:36 +02:00
Houtan Bastani
a57aa4359a
replace deprecated Matlab function strvcat with char
2010-09-27 16:11:14 +02:00
Ferhat Mihoubi
83648a6d53
- Correct the simul call without input argument
2010-09-24 11:07:43 +02:00
Sébastien Villemot
376e25ca67
Preprocessor: no longer crashes when some dynamic variables appear only in
...
unused model local variables (closes #101 )
2010-09-23 12:13:30 +02:00
Sébastien Villemot
0e73523f3b
Removed all MSVC workarounds, since we can now definitely drop this compiler on
...
Windows/64-bit platform
2010-09-21 15:06:14 +02:00
Sébastien Villemot
63d0fb3f04
Preprocessor: implement STEADY_STATE operator with "use_dll" and "block"
...
options (closes #98 )
2010-09-20 17:04:38 +02:00
Ferhat Mihoubi
5490f1bb09
RESID command is compatible now with block option and without bytecode option (closes ticket #45 )
2010-09-17 16:54:43 +02:00
Ferhat Mihoubi
f026137fa9
- Adding the relaxation method for block and/or bytecode options
...
- Changing the the stack_solve_algo option :
Previous version New version
1 : Sparse LU 0 : Sparse LU
2 : GMRES 1 : Relaxation
3 : BiCGStab 2 : GMRES
4 : Sparse LU & Optimal Path 3 : BiCGStab
5 : bytecode own solver 4 : Sparse LU & Optimal Path
5 : bytecode own solver
2010-09-17 12:18:25 +02:00
Ferhat Mihoubi
3e1a2ad450
- Substitutes lead for exogenous and endogenous variables in the deterministic case: direct substitution of the variables even in non-linear expressions
2010-09-17 12:17:09 +02:00
Sébastien Villemot
ffd2cb24aa
Preprocessor: make option "no_static" work even when "bytecode" is not present
2010-09-17 12:17:05 +02:00
Ferhat Mihoubi
2da9d5adda
Bug correction in the deterministic simulation: to solve a purely backward or forward looking block requires contemporaneous derivatives only.
2010-09-17 12:17:00 +02:00
Ferhat Mihoubi
f68e4fd455
- compute the jacobian matrix for exogenous, det_exogenous and previous blocks endogenous
...
- preprocessor provides informations about the dynamic structure of each block
- extends the algorithms available with bytecode: stack_solve_algo = 1, 2, 3 and 4 is compatible the bytecode. Speed and memory requirement are improved with stack_solve_algo = 1 or 4 for large scale models.
- bytecode can be used to evaluate a model
2010-09-17 12:16:47 +02:00
Sébastien Villemot
2c10d03368
Preprocessor: rename "NodeID" in "expr_t"
2010-09-17 12:13:26 +02:00
Sébastien Villemot
c8fdd5d9d1
Preprocessor: uniformize typedef names (with a "_t" suffix)
2010-09-16 19:00:48 +02:00
Sébastien Villemot
c3c8fa5cca
Preprocessor: clean prototypes of ModelTree methods (removed arguments
...
redundant with data members, added const keywords, use passing-by-reference)
2010-09-16 17:51:50 +02:00
Sébastien Villemot
ae3e741cb8
Preprocessor:
...
- remove useless output type oMatlabDynamicModelSparseLocalTemporaryTerms
(indistinguishable from oMatlabDynamicModelSparseLocal)
- fix bug in output type of sparse static model
2010-09-16 16:57:35 +02:00
Sébastien Villemot
75440028eb
Preprocessor: fix crash when mean or stderr of an estimated parameter is specified as an expression instead of a plain value (bug introduced in 28d30d9a626a8d7be0866038924bfc52a935ee27)
2010-09-16 15:37:27 +02:00
Michel Juillard
6612ef7a30
Preprocessor: corrected bug on HISTVAL with lags > 1
2010-09-10 11:43:48 +02:00
Michel Juillard
721926a78b
Revert "Preprocessor: change the automatically generated name of auxiliary vars for"
...
This reverts commit 524e9a9c67dafa4d4933823b8c6893ad39691b09.
2010-09-07 17:12:06 +02:00
Sébastien Villemot
e7067a04d8
Preprocessor: change the automatically generated name of auxiliary vars for
...
lagged endo/exo so that they contain the type-specific symbol ID (instead of
the preprocessor internal symbol ID)
2010-09-07 13:03:51 +02:00
Sébastien Villemot
1910d02e74
Preprocessor: fix line numbering problems due to native MATLAB statements (bug introduced in a0cd4b33aea0965d9baa9b4c66d0c875fa0aa7d0 and 6582341799d35e80c59f6f3559dbd18e70443747)
2010-08-30 14:37:48 +02:00
Sébastien Villemot
705b14f5c3
Preprocessor: in the lexer, "end;" now corresponds to 2 tokens (instead of one), for consistency with the other tokens
2010-08-30 14:16:07 +02:00
Sébastien Villemot
19ebd12a5d
Preprocessor: when removing lags greater than 2 on endogenous or lags on exogenous, don't substitute model local variables that do not need to
2010-08-19 15:20:54 +02:00
Sébastien Villemot
e44c41334e
Preprocessor: in the parameter derivatives file, add the global "oo_" when the STEADY_STATE operator is used
2010-08-12 18:16:24 +02:00
Michel Juillard
d3c4f7f3e6
preprocessor: fixing bug for OSR optim_weights with covariances
2010-08-10 20:16:59 +02:00
Michel Juillard
6c0a0969f6
make sure that 2nd and 3rd order derivatives that haven't been computed are not taken to be zero.
2010-07-17 10:14:22 +02:00
Michel Juillard
f2e21ca0a6
added conditional variance decomposition to estimation options
2010-06-26 15:39:25 +02:00
Houtan Bastani
4a76532c29
move validation check from constructor to checkpass
2010-06-24 19:42:38 +02:00
Houtan Bastani
fe133054cf
DSGE-Var: bug fix. Add init param statement at the before the estimation statement
2010-06-24 15:08:23 +02:00
Houtan Bastani
ee9b19fadc
DSGE-VAR: support deprecated way of declaring dsge_prior_weight
2010-06-22 10:38:54 +02:00
Houtan Bastani
5a9f972cc1
DSGE-VAR: introduce dsge_var and dsge_varlag options to estimation statement
2010-06-22 10:38:43 +02:00
Houtan Bastani
c0cc384956
enable multi-line native matlab statements
2010-06-21 13:08:42 +02:00
Houtan Bastani
74b0b9c198
remove comments that are placed on the same line as native Matlab code in a .mod file
2010-06-18 16:21:28 +02:00
Houtan Bastani
8b03f0d2fd
fix typo
2010-06-18 16:21:28 +02:00
Sébastien Villemot
2356ef7460
Preprocessor: cosmetic changes related to 'size_t'
2010-06-18 15:48:46 +02:00
Sébastien Villemot
6bc31611de
Preprocessor: fixed bug (substitution was incorrectly done with leads on exogenous)
2010-06-11 19:21:03 +02:00
Sébastien Villemot
86db2423d2
Added new loglikelihood DLL (does not yet contain prior computation, only the likelihood)
2010-06-11 19:18:16 +02:00
Sébastien Villemot
95809e2ca3
Preprocessor: cosmetic changes
2010-06-10 17:54:03 +02:00
Sébastien Villemot
fcf1ad6ae9
Preprocessor: remove spurious compiler warning
2010-06-10 17:52:37 +02:00
Houtan Bastani
6b0b5a8065
fix error message
2010-06-10 15:16:54 +02:00
Houtan Bastani
ed88a8e528
Bug fix: catch the case when a parameter follows a beta distribution with mean = std err = 0.5
2010-06-09 15:09:55 +02:00