Commit Graph

62 Commits (8ac397daa2976c81cc2f81de2c3ab58cdef5ea36)

Author SHA1 Message Date
sebastien 53822c7b76 v4 parser: made LOG and LN distinct tokens, but triggering the same actions
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1487 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-19 10:11:54 +00:00
michel f60bb42588 v4 parser: corrected bug for normcdf in DynareBison.yy
begin implementation of homotopy (not finished)


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1461 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-26 16:31:48 +00:00
ferhat d884d8a397 New features:
- Implementation of the simulation of the block decomposed model using sparse matrix using MATLAB code: 
  New option in model : sparse
  Example:
  Model(SPARSE);
  ….
  End;
- Implementation of the simulation of the block decomposed model using sparse matrix for static model. 
- Krylov methods are implemented to solve the linear model J.y=b, with J the Jacobian matrix at each step of  the Newton Method. Two Krylov's solvers are considered : 
   + Generalized Minimum Residual Method (GMRES) 
   + BiConjugate Gradients Stabilized (BICGSTAB)
  To call them the SIMULATE command has to be completed with a new option : METHOD which could have three   different values : 
   + LU : (default value)  Sparse LU resolution
   + GMRES 
   + BICGSTAB
	 	Example:
 			simul(periods=100, method=lu);
                        or        simul(method=Gmres);
- Correction of various bugs in “simulate.dll”.
- Correction of simk.m
- Correction allowing a list of VALUES or PERIODS not necessarily separated by a comma. 

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1447 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-20 23:24:01 +00:00
michel 2a79c2cecc v4 parser.src: added function normal cumulative density normcdf(x,mean,std dev) and its derivative
added tests/parser/t_normcdf.mod
               added Trinary Operators
               increased precision of constants written to *.m or *.c files


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1440 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-11 15:24:50 +00:00
ferhat a5323768aa Gets rid of dummy function (replaced by logical operators) and corrects logical operators.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1427 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-15 09:04:08 +00:00
michel 484f5d3034 v4 parser: forces use of comma in shocks periods expressions
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1425 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-12 07:02:54 +00:00
michel e0da1578a6 v4 parser: forced SIGMA in shocks values expression in order to avoid reduce errors in parser
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1424 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-11 18:29:50 +00:00
ferhat d53caec4af New logical operators:
"==", "!=", "<", ">", "<=", ">="

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1421 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-08 22:52:57 +00:00
ferhat 5e8bf1ef51 Corrections for min, max and dummy functions in DynareBison.yy: hand_side involves hand_side arguments
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1420 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-05 22:11:47 +00:00
adjemian 163c5b4146 Add min(,) max(,) and dummy() functions to dynare... Buggy until tomorrow ;-)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1417 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-05 19:47:27 +00:00
sebastien d98a955ad4 v4 parser: reindented DynareBison.yy (no more tabs)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1413 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 10:40:36 +00:00
ferhat abc824dbdf New model option: "NO_COMPILE" (simulation of the block decomposed model without compilation).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1409 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-03 22:01:08 +00:00
michel f9b21362ef v4 preprocessor: simplified syntax for shocks values to eliminate bug with negative deterministic shocks
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1404 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-02 14:02:13 +00:00
sebastien ca254fdb22 v4 parser: added options constant and noconstant for BVAR commands
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1394 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-25 11:47:44 +00:00
michel 60ddf0817d v4 parser: added option mh_recover
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1381 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-08-19 08:07:31 +00:00
sebastien 50950ea63f v4 parser: removed deprecated "olr" command
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1342 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-06 14:39:38 +00:00
sebastien bcefdfc37c v4 parser: added "print" and "noprint" options to stoch_simul
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1336 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-02 13:08:21 +00:00
sebastien 86360d9eb4 v4: added BVAR code for computing marginal density and forecasting
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1331 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-25 22:42:30 +00:00
michel 3261c1a1e0 v4 parser: added nograph to stoch_simul options
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1321 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-17 13:05:07 +00:00
ferhat 77d6a24cf7 Adding Markowitz criteria in the linear solver (new option in simul: "Markowitz=val" - with val a strictly positive real)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1298 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-03 22:35:30 +00:00
ferhat 9af2e461c3 New release of deterministic simulation.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1292 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-01 11:43:49 +00:00
sebastien 8fb8b0ff99 v4 parser:
* added pre-computing of numerical constants (i.e. 1+1 is replaced by 2)
* removed appending of ".0" for integer constants
* refactoring of NumericalConstants


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1255 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-05-08 19:16:35 +00:00
sebastien 9f33835d6a v4 parser:
* implemented handling of mod file local variables (eModFileLocalVariable)
* renamed "local parameters" to model local variables (eModelLocalVariables)


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1253 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-04-30 12:09:05 +00:00
sebastien 573227a044 v4 parser:
* removed Expression class; the "ExprNode" class is therefore now used everywhere
* removed interprete class, and replaced it by a method in ExprNode and an global evaluation context in ModFile
* fixed breakage of SparseDLL / Block decomposition code introduced in previous revision


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1204 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-03-09 17:27:46 +00:00
sebastien feec20209d v4 parser: merged Fehrat's changes
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1190 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-02-21 23:28:16 +00:00
sebastien 0c16f52806 v4 parser:
* reshaped DataTree/ModelTree using a more object-oriented approach
* improved expression sharing algorithm (temporary terms in output files), resulting in smaller output files for big models
* optimized performance (both in computing time and memory consumption)
* bugfix: the expressions stored in local parameters of models (pound expressions) are now derived
* bugfix: cosh(0) = 1
* removed some useless parentheses in output


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1148 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-09 19:00:05 +00:00
michel 77cdcce658 v4: adding Ramsey policy to parser;
changes to Ramsey policy Matlab code

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1133 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-04 14:42:27 +00:00
michel 6b761cf937 v4 parser: added option mh_revover
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1131 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-26 09:23:01 +00:00
sebastien 637ca0f86e v4 parser DynareFlex/DynareBison: removed unused tokens and other minor cosmetic changes
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1130 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-22 11:42:31 +00:00
sebastien 5bbd779bab v4 parser:
* added planner_objective statement, which triggers the creation of filename_objective_static.m
* added computing pass
* added the possibility of writing the hessian in static output file



git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1126 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-18 23:28:52 +00:00
sebastien 4f9e8a6e27 v4 parser:
* clearly separated the parsing process from the output writing, using an abstract intermediary representation of the mod file
* created the Statement class, and its derivatives, for that purpose
* fixed bug with "corr" statements in "shocks" blocks (variables indexes given to matlab were incorrect)
* fixed bug with "optim" option of "estimation" (this option was not passed to matlab)
* fixed bug with "dynatype" and "dynasave" (variable list was not passed correctly to matlab)
* fixed bug with "calib" and "calib_var" (they were unusable because of flex misspecification)
* fixed segmentation fault with "estimated_params_bound" and "estimation_params_init"


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1117 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-12 11:54:30 +00:00
sebastien 09c165f386 v4 parser: fixed bug related to non-associativity of POWER operator
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1113 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 15:14:14 +00:00
sebastien f84feddb02 v4 parser: added missing tokens in DynareFlex.ll; added error message for unrecognized characters; fixed minor bugs in DynareBison.yy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1112 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 14:26:06 +00:00
sebastien d5ac5b1fbd v4 parser: created ModFile class, which is the abstract representation of a mod file; removed all static variables
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1110 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 11:56:02 +00:00
michel f2b1f68e75 v4: prior_analysis, again
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1098 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 17:55:02 +00:00
sebastien 56f54de49a v4 parser: removed Objects class; fixed memory leaks associated to parsing
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1093 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-22 19:01:40 +00:00
sebastien 6d18a704b0 v4 parser: removed ylmm, replaced by Bison C++ support
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1084 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-17 17:48:11 +00:00
sebastien d26b0a49b1 v4 parser: removed factorial, because its logic is not implemented
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1079 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-15 22:48:32 +00:00
sebastien 05d0931fdd v4 parser: removed LN token, replaced by LOG
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1077 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-15 22:37:51 +00:00
sebastien c50f757b5d v4 parser: renamed .h files to .hh
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1029 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-04 22:41:30 +00:00
michel 3e049c1123 v4 parser: bug in histval
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1026 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-04 17:41:14 +00:00
sebastien d0a7a76fa4 v4 parser: removed unused functions or enumeration types, tweaked some documentation strings
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@989 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-10-18 10:52:41 +00:00
michel 7a5d7f3a53 v4 DynareBison.yy: correcting shift/reduce
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@948 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-10-07 09:50:25 +00:00
michel 68b552aef2 v4 parser.src: undoing rev. 944
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@945 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-10-04 18:32:33 +00:00
ferhat c04c947d4c New version of the parser with block decomposition
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@944 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-10-04 16:46:10 +00:00
michel fb30fd76ef v4 parser: add o_constant option; authorized estimated_params element with only 3 parameters
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@927 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-22 06:57:28 +00:00
michel 49075f9331 v4 parser: added constant/noconstant option
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@910 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-11 13:59:06 +00:00
michel f1885a6b26 v4 parser.src: added include/Interface.h to handle Scilab version, many files affected
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@870 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-08-24 13:05:54 +00:00
michel d19eb2f7ce dynare_v4 parser: steady doensn't set solve_algo=0 anymore
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@808 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-07-02 09:49:53 +00:00
michel 4f032c79ff v4 parser.src: added mshocks (untested)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@726 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-04-29 14:42:50 +00:00