MichelJuillard
b51b037ef2
Merge pull request #871 from JohannesPfeifer/prior_posterior_function
...
Add functionality Prior posterior function
2015-10-10 22:17:53 +02:00
Michel Juillard
a8580258a1
changed Dynare timer to local timer
2015-10-10 14:33:30 +02:00
Stéphane Adjemian (Charybdis)
e52ce43569
Removed clear all for Matlab>=R2015b.
...
By default, Dynare clears the globals and functions containing
persistent variables. The behaviour of Dynare is not changed with
Matlab<R2015b or Octave.
2015-10-06 11:34:56 +02:00
Houtan Bastani
f72fcbbe78
preprocessor: make ramsey_policy/ramsey_model and discretionary_policy mutually exclusive. closes #1047
2015-09-03 17:04:34 +02:00
Houtan Bastani
11eaf27453
Merge branch 'julia'
2015-09-01 11:35:16 +02:00
Michel Juillard
c9f771973d
expand extended preprocessor + first implementation of Petsc interface
2015-08-27 10:00:51 +02:00
Michel Juillard
3ed1d01ba9
adding writeResidualsC() for external files
2015-08-24 14:53:27 +02:00
Houtan Bastani
59122a1e73
fix comments in generated files
2015-08-21 12:00:47 +02:00
Houtan Bastani
8715878971
remove duplicate try/catch
2015-08-21 11:40:43 +02:00
Houtan Bastani
d65e9306cb
remove unnecessary get*Function functions
2015-08-19 11:28:25 +02:00
Houtan Bastani
09541f10ef
load steady_state! function into model.steady_state
2015-08-19 10:59:30 +02:00
Houtan Bastani
c88c17728e
preprocessor: issue warning when param used with lead/lag. closes #976
2015-07-30 14:40:03 +02:00
Houtan Bastani
8f92b975e4
write dynamic model output
...
Conflicts:
preprocessor/DynamicModel.cc
2015-07-29 14:59:09 +02:00
Houtan Bastani
45d1f7c5b6
add linear option to options
2015-07-29 13:31:42 +02:00
Houtan Bastani
8a4357640e
remove unnecessary assignment as the field is assigned in the constructor
2015-07-29 13:22:40 +02:00
Houtan Bastani
570230d8f0
rename model__ to model
2015-07-29 11:35:10 +02:00
Houtan Bastani
0126dec837
create options
2015-07-29 11:30:01 +02:00
Houtan Bastani
bc49d06e61
simplify modules created by preprocessor
2015-07-28 18:00:00 +02:00
Houtan Bastani
9562b4ffd1
reduce code that is output in modfile.jl
2015-07-28 17:32:34 +02:00
Houtan Bastani
d70ae4d103
write steady state model
2015-07-28 17:27:56 +02:00
Johannes Pfeifer
5131f3907f
Make sure the used global variables are correctly set and available in the base workspace
2015-07-28 15:36:59 +02:00
Houtan Bastani
b5be9b7437
wrie dynamic params deriv file
2015-07-28 14:59:55 +02:00
Houtan Bastani
c22cc15655
write static param derivs file
2015-07-28 12:29:42 +02:00
Houtan Bastani
25ae46e204
write dynamic file
2015-07-27 17:02:51 +02:00
Houtan Bastani
be464bb431
clean up writing of static model
2015-07-27 15:59:13 +02:00
Houtan Bastani
b81035a6f3
write static model
2015-07-27 15:33:38 +02:00
Houtan Bastani
32f66d2d35
write more output to modfilename.jl
2015-07-24 12:34:06 +02:00
Houtan Bastani
3a2fa0623a
accord variable names and functions with julia programming style
2015-07-24 11:35:23 +02:00
Houtan Bastani
4a5dcfca4d
change variable/parameter collections, finish printing SymbolTable info
2015-07-23 18:05:57 +02:00
Houtan Bastani
d70817ba1e
julia: initial preprocessor stub
2015-07-21 18:02:34 +02:00
Houtan Bastani
c604d9da38
move external file write functions to class definitions
2015-07-21 17:35:06 +02:00
Houtan Bastani
75295b3c54
fix typo
2015-06-30 12:12:49 +02:00
Houtan Bastani
383a852c9c
Revert "Merge branch 'rmExtraExo'"
...
This reverts commit 28ffa9c56f
, reversing
changes made to 60b3577a09
.
Conflicts:
preprocessor/Shocks.cc
preprocessor/SymbolTable.cc
2015-06-09 16:42:51 +02:00
Houtan Bastani
d6a1a71556
Revert "preprocessor: replace extra exos in steady state model"
...
This reverts commit 8bc946c148
.
2015-06-09 16:40:14 +02:00
Houtan Bastani
8bc946c148
preprocessor: replace extra exos in steady state model
...
(commit lost in merge)
(cherry picked from commit d7db5070e7cf8d1b043062b04d3bd3c4e18ce6c1)
2015-06-08 15:45:03 +02:00
Michel Juillard
5fd307cfd5
option occbin allows for more equations than variables
2015-06-04 14:18:46 +02:00
Houtan Bastani
28ffa9c56f
Merge branch 'rmExtraExo'
2015-05-28 12:33:56 +02:00
Houtan Bastani
fe8750c1bc
preprocessor: add minimal_workspace option to dynare statement, #946
2015-05-28 11:50:39 +02:00
Houtan Bastani
eb5f56703f
preprocessor: move all dynamic model reindexing to DynamicModel
2015-05-20 12:27:56 +02:00
Houtan Bastani
82f83a58d2
preprocessor: move external_functions_table reindexing to modfile::transformpass
2015-05-19 16:32:26 +02:00
Houtan Bastani
2ff3f06a69
preprocessor: remove unnecessary reindexing
2015-05-19 16:31:50 +02:00
Houtan Bastani
e389ab90bf
Merge branch 'master' into rmExtraExo
2015-05-18 17:16:55 +02:00
Michel Juillard
3171e87448
fixing logic in creation of checksum file. Improving documentation.
2015-05-11 08:57:24 +02:00
Michel Juillard
530e314786
adding dynare command line option 'fast' in order not to recompile MEX
...
files if the lists of variables and the equations haven't changed
between two runs of the same model file.
2015-05-10 20:29:03 +02:00
Michel Juillard
a5a5490a12
adding feature to recompile MEX files only if the model has
...
changed (not activated yet)
detail of compilation code moved from preprocessor (ModFile.cc) to
./matlab/utilities/general/dyn_mex.m
2015-05-10 18:16:53 +02:00
Houtan Bastani
445fd653f1
preprocessor: add dynare_version field to oo_, M_, and options_, #546
2015-04-30 14:45:53 +02:00
Houtan Bastani
524528bbde
preprocessor: take care of expressions_tree and steady_state_model
2015-04-21 15:06:56 +02:00
Houtan Bastani
2435961c68
preprocessor: reindex equations marked as [static]
2015-04-15 17:00:17 +02:00
Houtan Bastani
425d947859
preprocessor: remove resetDataTree method
2015-04-15 16:16:26 +02:00
Houtan Bastani
f4a4fb9d4c
preprocessor: move reindexing functions from DynamicModel to ModelTree
2015-04-07 15:58:18 +02:00
Houtan Bastani
b99e68d7b7
preprocessor: update warning message for missing varexos
2015-04-03 17:07:25 +02:00
Houtan Bastani
eb23adfb76
remove extra exo’s for shocks statement, nonstationary, and trend vars; fix bugs
2015-03-10 17:57:30 +01:00
Houtan Bastani
6c937b1554
preprocessor: remove extraneous varexo, update model and statements, #841
2015-03-06 16:44:17 +01:00
Houtan Bastani
9ab6be8995
preprocessor: bug fix; warning should be issued if there is at least one unused exo not more than one
2015-03-06 09:49:11 +01:00
Houtan Bastani
dcabcb6b01
preprocessor: new command write_latex_original_model. closes #657
2015-02-16 08:31:30 +01:00
Houtan Bastani
810c410157
preprocessor: add new commandline option onlyclearglobals. closes #635
2014-12-30 21:51:33 +01:00
Houtan Bastani
c3855a949d
preprocessor: add oo_recursive_ to results file, closes #812
2014-12-17 11:10:09 +01:00
Houtan Bastani
466a6d23a8
preprocessor: add field to store the number of multiplier equations added to ramsey problem. closes #728
2014-10-13 17:25:08 +02:00
Houtan Bastani
3e8acef4cc
preprocessor: add field that contains the total number of equations, #728
2014-10-13 17:17:50 +02:00
Houtan Bastani
da7d721063
preprocessor: always output the original number of equations
2014-10-13 17:16:41 +02:00
Sébastien Villemot
d1958e453c
Forbid use of 'identification' with exogenous deterministic variables.
...
Closes #664
2014-07-30 17:28:45 +02:00
Stéphane Adjemian (Charybdis)
6aee567382
Save empty dates and dseries objects in memory (base workspace) instead of disk (faster). Added an initialization mode for dates and dseries constructor. The following commands:
...
dates('initialization');
dseries('initialization');
create variables emptydatesobject and emptydseriesobject in base workspace.
2014-06-11 12:22:31 +02:00
Michel Juillard
15b44eda25
Merge branch 'master' into ep
2014-05-09 10:02:05 +02:00
Michel Juillard
ad42818606
fixing extended-preprocessor C++ API and test case
2014-04-24 14:33:04 +02:00
Sébastien Villemot
df0db38b3c
Bugfix: M_.sigma_e_is_diagonal could be wrong if there were several shocks blocks.
2014-04-10 11:43:26 +02:00
Sébastien Villemot
828f9d73d5
Cosmetic change for clearer code.
2014-04-09 18:33:24 +02:00
Sébastien Villemot
9c4b2d949b
Introduce two new command: perfect_foresight_{setup,solver}.
...
simul is now simply an alias for
perfect_foresight_setup+perfect_foresight_solver.
2014-04-09 17:57:17 +02:00
Sébastien Villemot
242a504cdc
Multiple "shocks" block are cumulative.
...
This was the default behavior before commit 82b31156
. This commit reintroduces
this behavior.
2014-04-09 15:23:20 +02:00
Michel Juillard
0983ca78f7
extended-preprocessor: starting a C interface (not finished)
2014-04-05 15:46:35 +02:00
Houtan Bastani
4973aa986e
changes related to #641 for os x
2014-03-25 10:43:14 +01:00
Sébastien Villemot
9aabb82c76
Fix call to "mex" helper under MATLAB 8.3 (R2014a) and GNU/Linux.
...
There is a new LINKOPTS variable which governs the list of symbols to be
exported, so we set it to an empty value to have all symbols exported.
Previously we were overloading the LDFLAGS which was containing the list of
exported symbols.
2014-03-24 16:31:43 +01:00
Michel Juillard
fd323a8217
extended-preprocessor: starting a C interface (not finished)
2014-03-16 18:49:54 +01:00
Michel Juillard
fabcbb7042
finishing ramsey_model implementation
2014-03-09 12:15:32 +01:00
Sébastien Villemot
18e81ab22a
Rename OutputType to FileOutputType (to distinguish it from ExprOutputType).
...
Also rename DynareOutput.hh to FileOutputType.hh. Include the latter in dist
tarball, and add copyright/license header.
2014-02-25 16:45:55 +01:00
Sébastien Villemot
8fddca92a2
Remove some limitations of steady state model:
...
- allow recursive definitions (Closes #554 )
- allow a variable to be defined twice, simply emit a warning (Ref #556 )
2014-02-24 17:27:34 +01:00
Michel Juillard
96ac2c0fd6
extended-preprocessor: update test example1
2014-02-24 13:33:48 +01:00
Michel Juillard
a18b33ed7e
extended_preprocessor: renaming files/class and bug fixing
2014-02-24 13:33:48 +01:00
Michel Juillard
49b34d4c94
write C++ version of model functions without temporary terms
2014-02-24 13:33:48 +01:00
Michel Juillard
bd1188f78e
extended-preprocessor: finished removing c_driver mechanism
2014-02-24 13:27:14 +01:00
Michel Juillard
2885a00c8f
extended-preprocessor: adding line options output= and cuda; starting
...
to change ModFile::c_driver mechanism
2014-02-24 13:27:14 +01:00
Houtan Bastani
9ba4fbded3
pretty end to dynare processing
2014-02-24 12:41:02 +01:00
Houtan Bastani
bb0045a892
ms-dsge: add options statement
...
Conflicts:
preprocessor/ComputingTasks.cc
preprocessor/ComputingTasks.hh
preprocessor/ParsingDriver.cc
2014-02-24 12:41:02 +01:00
Houtan Bastani
b37e3850e5
ms-dsge: write C output
...
Conflicts:
preprocessor/ComputingTasks.cc
preprocessor/ComputingTasks.hh
2014-02-24 12:41:02 +01:00
Houtan Bastani
0c5966d487
ms-dsge: add param initialization to C output
2014-02-24 12:41:02 +01:00
Houtan Bastani
b426f7236c
ms-dsge: create C driver file without statements
...
Conflicts:
preprocessor/DynareMain2.cc
preprocessor/ModFile.cc
preprocessor/ModFile.hh
preprocessor/Statement.hh
2014-02-24 12:41:02 +01:00
Michel Juillard
2fcb379b92
adding 3rd order derivatives to Static Model for evaluation of Ramsey
...
policy computed at order = 2
2013-12-11 19:24:29 +01:00
Houtan Bastani
9a21667e69
For Matlab >= 2013a on osx, use renamed SDKROOT macro, MW_SDKROOT
2013-12-10 18:18:46 +01:00
Sébastien Villemot
5031f9efc0
Cleanup more preprocessor-generated files at each run
2013-12-02 17:22:16 +01:00
Sébastien Villemot
839ae22b1f
Add a warning when some exogenous are not used in the model
2013-11-29 16:03:45 +01:00
Sébastien Villemot
ed2f6d62c1
Refactor code for collecting variables appearing in expressions
...
- rename ExprNode::collectVariables in ExprNode::collectDynamicVariables
- new ExprNode::collectVariables: same as above, but without lag information
- remove ExprNode::findUnusedEndogenous: essentially redundant with the above)
- remove ExprNode::collectModelLocalVariables: idem
2013-11-29 15:37:11 +01:00
Sébastien Villemot
f7cdc39ff2
Refuse that estimated parameters appear in the expressions defining the variance/covariance matrix of shocks
...
Closes #469
2013-11-29 14:51:17 +01:00
Houtan Bastani
3b26467998
saves variables if they exist at end of dynare run. closes #517
2013-11-13 11:29:27 +01:00
Houtan Bastani
07137e804b
preprocessor: move M_.Correlation_matrix and M_.Correlation_matrix_ME to preprocessor #392
2013-10-29 15:02:07 +01:00
Sébastien Villemot
f889760f61
Reactivate and fix the test for the balanced growth path.
...
If the homogeneized equation evaluates to zero, then we skip the
test (otherwise the 2nd derivative of the log is infinite, and the test fails
while it should not necessarily).
Closes #506
2013-10-29 18:46:54 +08:00
ferhat
37876b2c2b
Comment the trend test for a balance growth path => problematic with eLogTrend
2013-10-28 16:41:21 +01:00
ferhat
051213f798
Add a flag for calib_smoother command and apply a setup similar to the one used for stoch_simul command:
...
- Add auxiliary variables for leaded and lagged exogenous
- Set the cutoff applied to the Jacobian at zero for the static and the dynamic models
2013-10-28 14:22:23 +01:00
Houtan Bastani
20dba7e623
new nostrict command-line option does not exit when there are more endogenous than equations ( closes #2 )
2013-09-13 14:44:01 -04:00
Stéphane Adjemian (Charybdis)
3dc372e5bc
Added (command line) nointeractive option.
2013-07-10 12:02:12 +02:00
Stéphane Adjemian (Charybdis)
dd21816b13
Added (command line) nograph option.
2013-07-10 11:03:48 +02:00
Sébastien Villemot
f48141755c
Add new option parallel_local_files to model block
...
Ref #389
2013-05-31 14:47:38 +02:00