Commit Graph

51 Commits (beb7d42d748f9f0f5216ed7aca93dceb4f73df2c)

Author SHA1 Message Date
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
Stéphane Adjemian (Charybdis) 1bf81c9f5a Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Johannes Pfeifer cc81f26f0d Adjust error message in steady_.m if PATH is selected on Octave 2016-08-23 17:28:41 +02:00
Michel Juillard c49332df43 add support for PATH for steady state 2016-05-31 12:10:12 +02:00
Stéphane Adjemian (Charybdis) ddd95361ba Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION'). 2013-11-04 10:54:45 +01:00
Michel Juillard ee7078e56c factoring out steady-state computations; steady_state_model now
generates <fname>_steadystate2.m returning parameters as well in case
they have been modified by the user. Added several test cases.
2011-10-12 21:51:14 +02:00
Ferhat Mihoubi f48aa28e39 Corrections for steady_state operator bug with bytecode. bytecode is now fixed. 2011-03-14 17:46:00 +01:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Sébastien Villemot 757a9067c0 Global reindentation of MATLAB files 2011-02-04 17:17:48 +01:00
Ferhat Mihoubi b356c5e58e add_auxiliary_variables_to_steadystate is compatible with bytecode option
+ minor corrections in steady_.m
2010-11-25 16:00:54 +01:00
Ferhat Mihoubi 1aceb504fd Check command is now compatible with block and bytecode options 2010-10-27 15:34:48 +02:00
Sébastien Villemot 5059c48460 solve_algo=7 (GMRES) is forbidden under Octave 2010-10-22 16:52:02 +02:00
Ferhat Mihoubi 39718c8645 - extends steady algorithms to solve_algo=5, 6, 7 and 8 for a block decomposed model without bytcode
-  solve_algo is reordered =
   * 0: fsolve
   * 1: solve1
   * 2, 4: solve1 + block decomposition
   * 3: csolve
   * 5: bytecode own solver (use Gaussian elimination + sparse matrix)
   * 6: LU decomposition with UMFPack (method handling sparse matrix in Matlab)
   * 7: GMRES
   * 8: BiCGStab
2010-10-22 16:49:47 +02:00
Sébastien Villemot f336a68ecc Update tests for values of solve_algo and stack_solve_algo 2010-10-22 13:00:49 +02:00
Ferhat Mihoubi 1a09426706 - Correction of several bugs with Octave
- Add wrapper needed to compute the steady-state using bytecode and solve_algo = 0, ..., 4
2010-10-22 10:09:07 +02:00
Ferhat Mihoubi 8f36437662 - 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 df1b1e4ed0 - In bytecode, the MATLAB function "mexErrMsgTxt" has been replaced by an exception handling see ticket #137 2010-09-24 12:52:58 +02:00
Ferhat Mihoubi 0a3c8a4b0c - 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
ferhat 0efd5b1621 "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 1be52aaa5f Beautification: removed tabulation characters which were left in previous beautification pass
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3300 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 10:46:10 +00:00
sebastien 502e3e1df8 Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
sebastien aa23ed73e9 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 a2cef7009d Fixes for ticket #57
preprocessor:
* add a field "M_.orig_endo_nbr" containing the nbr of endogenous before adding aux vars
* always provide "M_.aux_vars" (define it to "[]" when there is no aux var)
* rename "M_.aux_vars().orig_endo_index" to "M_.aux_vars().orig_index"

M-files:
* for commands which accept a list of variables (stoch_simul, osr, estimation, dynasave, dynatype, datatomfile), when no variable is given, use only the set of original endogenous (without aux vars) as the default
* when displaying the decision rule, when there is aux vars in the state variables, replace them by their original name (with the right lag)
* in "steady", don't display aux vars
* special exception for ramsey policy: all vars (including aux vars) are displayed, because the system of aux vars from ramsey policy is not compatible with the aux vars from the preprocessor


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3166 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 10:22:39 +00:00
sebastien ffd9b2d405 preprocessor: clean-up workaround for acosh(), asinh(), atanh() on Win 64 platforms
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3101 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-29 17:16:10 +00:00
ferhat e1f17fa9e5 - adds a new option in simul command when block and bytecode options are used : minimal_solving_periods. With bytecode option, the linear solver is applied only on the first periods. As soon as the set of operations remains the same from one period to another, they are repeated for the remaining periods. In some cases the linear solver could encounter exact or near singularities. To avoid these effects, this new option allows the user to extend the minimal number of periods where the model has to be solved.
- corrects some mod files.
- In steady command, get check argument from bytecode dll

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3051 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-18 15:18:16 +00:00
ferhat 3c2d944cfc - use of classes to describe the bytecode tags
- use static option for bytecode instead of steady_state option

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3048 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-16 16:34:27 +00:00
michel ce5c510d06 v4.1: add provision for <modfile>_steady_state.m and auxiliary variables for leads on more than 1 period
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3022 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:37:23 +00:00
michel 541129c1be v4.1: adding add_auxiliary_variables_to_steadystate.m and code to adjust output of <fname>_steadystate.m for additional auxiliary variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3014 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 12:10:50 +00:00
stepan bc83fbd808 * Allow the use of a *_steadystate.m file with options block and bytecode.
* Added the possibility to use resid when the the options block *and* bytecode
are used.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2986 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-25 16:20:19 +00:00
sebastien 74232e9ee5 * Added new option stack_solve_algo to simul
* Added solve_algo=5 for steady
* Remove obsolete method option of simul
* Added various checks to avoid unimplemented combinations of bytecode/block/solve_algo/stack_solve_algo


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2882 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 16:34:48 +00:00
ferhat 9f45200924 simulate.dll has been replaced by bytecode.dll
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2881 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 14:40:54 +00:00
ferhat ed6cda0ca1 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
ferhat d32dd99210 - extension of normalization of equations to nonlinear equations
- mfs: new option for 'steady' and 'model' commands. Determines the equation belonging to the set of feedback variables.
  mfs = 0 => all variables are considered as feedback variables (default value)
  mfs = 1 => using only naturally normalized equation as potential recursive equations (all variables assigned to unnormalized equations are considered as feedback variable)
  mfs = 2 => adding to the set of potential recursive equation with mfs = 1 the linear equation in endogenous variable normalized (all variables assigned to nonlinear unnormalized equations are considered as feedback variable)
  mfs = 3 => adding to the set of potential recursive equation with mfs = 2 the non linear equation in endogenous variable normalized
- correction of few buggs in simulate.dll
- block_mfs_dll: new option for 'steady' command. Use simulate.dll to solve the steady state model (speedup the computation of the steady-state and the homotopy)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2866 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-25 09:43:01 +00:00
sebastien 64361938bb Added missing error catching
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2861 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-18 13:01:47 +00:00
sebastien e8700bc046 Implemented MATLAB part of the block_mfs option to steady.
(Still need to fix a bug)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2829 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 16:35:07 +00:00
stepan 9fe2556b01 v4.1: Dynare displays the residuals of the static equations of the model when the values of the endogenous variables supplied by
*_steadystate.m are wrong.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@2336 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-19 21:34:44 +00:00
sebastien db50368418 v4 matlab: fixed some existing copyright headers (and some other minor header issues)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1974 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 12:40:33 +00:00
sebastien 75fb140b5c v4 matlab+preprocessor:
* removed global variables from "static" and "dynamic" files (in standard and USE_DLL modes only)
* added extra arguments when those functions are called from M-files


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1859 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-06 14:01:02 +00:00
assia 73d6897350 header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1546 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-10 14:29:29 +00:00
michel 23277f1f87 v4 steady_: corrected bug when checking values returned by *_steadystate.m
Triggers an error when *_steadystate.m returns wrong values


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1401 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-29 08:20:06 +00:00
adjemian cec9b756dc Do not print the steady state flag!
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1248 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-04-15 12:58:18 +00:00
adjemian 0448da2649 Bug fixes (BVAR-DSGE)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1181 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-02-09 16:30:47 +00:00
michel 8fcac85ea1 v4 steady_: checking user provided ..._steadystate.m can't be done for nonstationary models
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@917 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-17 15:21:22 +00:00
adjemian 66722531f8 Added the steady state provided by the _steadystate file is checked in steady_
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@914 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-15 14:16:34 +00:00
adjemian 6eac49b1d7 Correction of bugs related to the _steadystate file.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@822 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-07-17 08:47:30 +00:00
michel ac5a09a233 v4: cleanup unused function
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@780 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-06-02 07:42:00 +00:00
michel 6e23ddbf6d v4: global dr_ -> oo_.dr; corrected bug with dr_algo=1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@608 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-01-18 16:50:33 +00:00
michel a24bd3449d v4 steady_.m: exo_simula and exo_det_simul are passed in x to _steady function
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@593 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-01-12 10:21:20 +00:00
michel 71a4fd49c8 v4: bugs in trend_coeff, steady state; changed handling of penalty by csminwel
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@590 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-01-08 08:39:00 +00:00