Commit Graph

192 Commits (8ac397daa2976c81cc2f81de2c3ab58cdef5ea36)

Author SHA1 Message Date
sebastien 059bb76e7c v4 parser:
* refactored SymbolTable class
* added a uniform interface for emitting warnings


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1494 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-19 15:16:43 +00:00
sebastien a3184c32de v4 parser: removed old Debug directory
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1493 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-19 14:39:51 +00:00
sebastien 8d7ff0e198 v4 parser: removed old test directory
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1492 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-19 14:39:07 +00:00
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
sebastien 10bdf16a2a v4 parser:
* fixed operators precedence (in particular for relational operators)
* various minor cleanups


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1483 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-07 16:02:55 +00:00
sebastien fd6f89e0f3 v4 parser: updated DynareBison.{cc,hh}
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1481 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-07 14:26:57 +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 d90393f9df Adding the simulate files.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1448 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-20 23:27:30 +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 5bc2832d9b v4: updating DynareBison.cc
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1444 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-15 16:13:20 +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
sebastien a79bd59d91 v4 parser: replaced malloc.h by stdlib.h for MacOS X compatibility
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1437 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-02 09:46:59 +00:00
sebastien b4dfd32e59 v4 parser: add unknown function names to the symbol table
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1430 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-17 09:36:56 +00:00
ferhat 4cf7dccdac Adding cost on Min and Max function
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1429 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-15 10:55:39 +00:00
ferhat 89f2702600 Makefile for simulate DLL
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1428 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-15 09:05:19 +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
sebastien 2534f71ec6 v4 ModelTree.cc: reverted bug re-introduced in r1409 in dynamic C file
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1412 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 09:25:50 +00:00
sebastien bf7e808e2b v4 parser ExprNode.cc: treat all variables types in VariableNode::compile
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1411 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 09:20:15 +00:00
sebastien 5e1d6683ff v4 parser: various minor things
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1410 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 09:16:52 +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
sebastien 200812ba6e v4 parser DynareFlex.ll: removed duplicate rule
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1406 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-02 19:06:21 +00:00
michel ad3273d726 v4 preprocessor: added code for GSA (Marco) not finishde
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1405 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-02 14:05:16 +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
sebastien 97d78558d3 v4 parser: updated doxygen configuration file
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1387 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-20 16:23:20 +00:00
sebastien 610d849121 v4 parser: fixed problems with DLL mode
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1384 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-13 17:50:32 +00:00
sebastien 1733962c4d v4 parser: updated DynareBison.cc to match Bison file
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1383 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-13 17:50:01 +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 162195c882 v4 parser: removed the mechanism which records whether a given symbol has been referenced or not in the model block (useless and creates problems for standalone BVAR estimation)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1371 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-16 16:48:47 +00:00
sebastien 446623f576 v4 parser: allow for empty model in some cases (actually for standalone BVAR estimation)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1370 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-16 16:47:09 +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
michel db89b91a5e v4 parser: NaN() is only available in recent Matlab version, changed to repmat(NaN,..,1);
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1335 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-02 12:48:38 +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 d9f02736c5 v4 parser: changed function call for ramsey_policy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1322 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-17 13:06:50 +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
michel 38c173f3be v4 parser: touched Makefile to test SVN messages
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1306 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-07 12:38:25 +00:00
sebastien 95a3c08799 v4 parser: cosmetic changes
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1302 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-06 10:17:27 +00:00
sebastien 6eec6211fe v4 parser: fixed several problems with USE_DLL option:
* in the .m file, corrected "if exist" and "mex" lines
* in the .c files, fixed problem with model local variables
* reverted Fehrat's change: power operator in C is pow(), not pow1()


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1301 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-06 09:58:45 +00:00
ferhat 34004449df Error messages during compilation corrected
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1300 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-06 08:35:22 +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 3f6a51bfd4 v4 parser: fixed problem with C code compilation (+ beautification of the code)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1254 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-04-30 14:49:08 +00:00