Houtan Bastani
4087bb5891
preprocessor: json: print steady_state_model file
2017-10-17 11:09:24 +02:00
Houtan Bastani
b398b379fc
preprocessor: perpetuate nopreprocessoroutput option to preprocessor code #1390
2017-09-28 14:58:25 +02:00
Houtan Bastani
d23a684bf6
preprocessor: add write_latex_steady_steade_model command. Closes #1496
2017-08-30 14:30:06 +02:00
Houtan Bastani
48d6155dbc
preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431
2017-08-24 16:10:53 +02:00
Stéphane Adjemian (Charybdis)
51feda7d02
Fixed code indentation.
2017-06-14 07:01:31 +02:00
Houtan Bastani
746f88eb6e
preprocessor: create two different static and dynamic files with the option jsonprintderivdetail. #1387
2017-03-03 14:42:37 +01:00
Houtan Bastani
1b3cccb602
Merge branch 'master' into json
2017-03-03 14:42:25 +01:00
Houtan Bastani
9eb7c00da1
preprocessor: fix bug that caused temporary terms not to be printed for the parameter derivatives of the static model. closes #1397
2017-03-01 12:20:55 +01:00
Houtan Bastani
301c9691d9
preprocessor: JSON output aesthetic fixes, support planner objective. #1387
2017-02-27 15:40:34 +01:00
Houtan Bastani
915bea91a1
preprocessor: output JSON after different steps, write static, dynamic, params derivs files in JSON. #1387
2017-02-24 17:43:22 +01:00
Houtan Bastani
01552008ba
preprocessor: issue error when exogenous included in planner_objective. closes #1264
2016-08-12 11:50:57 +02:00
Houtan Bastani
323fe8d41a
preprocessor: replace no_2nd_order_params_derivs with params_deriv_order. #1187
2016-05-18 12:26:19 +02:00
Houtan Bastani
48928c61ce
Revert "preprocessor: add params_derivs_order to identification and sensitivity. #1187"
...
This reverts commit 6192a6a7765e7bde388f4a6feac4362d1e9fd284.
2016-05-18 10:33:45 +02:00
Houtan Bastani
b898bfea6e
preprocessor: add params_derivs_order to identification and sensitivity. #1187
2016-05-17 17:18:16 +02:00
Houtan Bastani
0b922739a6
preprocessor: only compute first order derivatives w.r.t. parameters with identification. closes #1187
2016-05-12 12:02:34 +02:00
Houtan Bastani
4462591347
fix copyright dates
2016-05-04 16:05:31 +02:00
Michel Juillard
da63d21f0d
fixing problems with Ramsey policy and auxiliary variables
2016-04-04 17:11:03 +02:00
Houtan Bastani
f0cc9c4151
modify *_set_auxiliary_variables to work in julia
2015-08-17 15:36:18 +02:00
Houtan Bastani
d7ad832c1d
write static param derivs file
2015-07-28 12:29:42 +02:00
Houtan Bastani
6fc6f2f7d1
clean up writing of static model
2015-07-27 15:59:13 +02:00
Houtan Bastani
f3c14ec396
write static model
2015-07-27 15:33:38 +02:00
Michel Juillard
9dfcf897f7
adding 3rd order derivatives to Static Model for evaluation of Ramsey
...
policy computed at order = 2
2013-12-11 19:24:29 +01:00
Sébastien Villemot
bbc422cf5a
Fix copyright notices
2013-06-12 17:04:46 +02:00
Sébastien Villemot
922a7ad61e
Remove unused stuff
2012-11-29 18:08:53 +01:00
Sébastien Villemot
dc1be70d82
Add derivatives of static model w.r.t. parameters
...
The new file is <FILENAME>_static_params_derives.m
Closes : #160
2012-11-29 18:07:48 +01:00
Sébastien Villemot
e1814e0302
Preprocessor: minor fix for internal doc
2011-12-28 11:47:49 +01:00
Houtan Bastani
5dc9092723
cosmetic: simplify jacobianHelper, hessianHelper and sparseHelper functions and fix spacing in dynamic file
2011-08-19 16:59:18 +02:00
Houtan Bastani
5c48733f55
output mex file for static model ( closes #183 )
2011-08-19 16:57:27 +02:00
Michel Juillard
4d4456b8d6
adding creation of <fname>_set_auxiliary_variables.m containing recursive definition of auxiliary variables
2011-07-24 20:56:30 +02:00
Sébastien Villemot
d2696ca2f0
Preprocessor: factorize code common between StaticModel and DynamicModel, and put it in ModelTree
2011-06-22 11:56:07 +02:00
Ferhat Mihoubi
53fe3fe8ed
- Compute :
...
+ the number of static, lag, lead and both variables,
+ the lead_lag_incidence matrix for variables related to previous blocks
+ the index of reordered policy rule
for each block during the preprocessing step
- correct a bug in the comment related to first order derivatives in _dynamic.m file for a block decomposed model without bytcode
- avoid simplification of the Jacobian matrix (setting to zero all elements below the cutoff) for estimated or stochastically simulated models: the cutoff option is set to 0.
2011-06-18 17:53:50 +02:00
Sébastien Villemot
60b70df4c1
Updated copyright notices
2011-02-04 17:27:33 +01:00
Sébastien Villemot
d264b7b2e3
Reindentation of the preprocessor
2011-02-04 16:25:38 +01: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
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
5546658b4d
Preprocessor: with 'steady_state_model' command, write auxiliary equations in the steady state file
2010-04-27 17:04:52 +02:00
Sébastien Villemot
d68e984fd6
Preprocessor: added new 'steady_state_model' keyword for automatically creating steady state file
2010-04-23 18:39:07 +02:00
Houtan Bastani
9abc7563c1
Add support for external functions
2010-02-23 18:15:18 +01:00
ferhat
f13b95cb87
"bytecode" option can be used without "block" option
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3373 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-22 10:03:29 +00:00
sebastien
22000da5ea
Changes by Ferhat:
...
* fix options stack_solve_algo={2,3,4} (closes #68 )
* fix crashes for singular normalizations (closes #44 ) and implement decreasing cutoff
* fail for stack_solve_algo=2 under Octave (because there is no gmres function in Octave)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3279 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-21 10:29:21 +00:00
sebastien
3aa8876538
Beautified preprocessor code (uncrustify + emacs + manual adjustments, in particular with templates in MacroValue)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3249 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:13:23 +00:00
sebastien
160ec5d7ca
preprocessor + bytecode DLL: various enhancements to block and bytecode options (changes by Ferhat)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3244 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 13:21:31 +00:00
sebastien
2f1382fab5
preprocessor:
...
* In stochastic mode, now transforms the model by removing leads and lags greater or equal to 2 (creating auxiliary variables and equations in the process)
* Information about these variables is in structure M_.aux_vars
* Automatically add the necessary initialization for auxiliary vars after the initval block or load_params_and_steady_state
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3002 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-30 15:10:31 +00:00
sebastien
00d887f984
Various cleanups related to new options "bytecode" and "block"
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2879 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 13:36:56 +00:00
ferhat
0a816a4e74
New options for block decomposition and bytecode (see http://www.dynare.org/DynareWiki/ByteCode ):
...
- the options "sparse_dll" and "sparse" are no more available. They are replaced by combinations of block (for block decomposition) and bytecode (for model stored in a binary file)
- markowitz is now an option of simul and steady commands
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2873 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-29 15:04:11 +00:00
sebastien
4b48b5efc0
Preprocessor: handle model local variables in blocks_mfs mode of steady command
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2841 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-13 13:44:46 +00:00
sebastien
81b6823bb3
Preprocessor: bugfixes to block_mfs option of steady
...
* sort recursive variables in topological order in the _static.m file
* collectEndogenous() returs type specific IDs, not symb_id!
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2833 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 14:22:40 +00:00
sebastien
84f3993088
Preprocessor, static model handling: added code to output M-file when in block+MFS mode
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2820 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-07 15:58:17 +00:00