Michel Juillard
c2a1975194
skipt expectation operator in substitution of auxiliary variables
2016-04-01 18:45:19 +02:00
Michel Juillard
5199638b3a
replacing auxiliary variables by their definition
...
in static model. Doesn't work right yet.
2016-04-01 18:45:19 +02:00
Stéphane Adjemian (Hermes)
127637ffd6
Merge branch 'temporary_terms'
...
Do not evaluate unnecessary temporary variables (for instance those
used in the evaluation of the jacobian matrix when we only compute the
residuals of the dynamic equations).
2016-03-09 17:53:58 +01:00
Houtan Bastani
4976b2b335
preprocessor: add equation cross references
2015-12-18 15:17:32 +01:00
Michel Juillard
c598f4dde3
fixed another bug in col_id computation
2015-09-20 15:46:17 +02:00
Houtan Bastani
17c1f52868
preprocessor: quick fix for #263
2015-09-07 15:56:37 +02:00
Houtan Bastani
5bd51d65e8
replace cend with end and cbegin with begin
2015-09-03 16:06:37 +02:00
Houtan Bastani
dc441b41b8
preprocessor: rework temporary terms
2015-09-03 15:25:36 +02:00
Houtan Bastani
6c34da5c12
raise cost of oPowerDeriv to always create a temporary variable if it has been encountered at least twice
2015-09-03 14:25:17 +02:00
Houtan Bastani
7697067062
preprocessor: fix bug in calculation of cost of trinary ops
2015-09-03 12:01:01 +02:00
Houtan Bastani
ee7e5d6814
temp
2015-09-02 18:50:09 +02:00
Houtan Bastani
2846a7023d
preprocessor: julia: print only those temporary vars needed for the computation of (residuals, g1, g2, g3) in the respective dynamic! and static! functions
...
(cherry picked from commit eb2890d1f5
)
2015-09-02 15:30:25 +02:00
Houtan Bastani
9b525713d9
Revert "preprocessor: julia: print only those temporary vars needed for the computation of (residuals, g1, g2, g3) in the respective dynamic! and static! functions"
...
This reverts commit eb2890d1f5
.
2015-09-02 15:29:52 +02:00
Houtan Bastani
eb2890d1f5
preprocessor: julia: print only those temporary vars needed for the computation of (residuals, g1, g2, g3) in the respective dynamic! and static! functions
2015-09-01 18:29:10 +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
Houtan Bastani
534609ffce
change getPowerDeriv to get_power_deriv to accord with Julia function naming style
2015-08-18 15:49:48 +02:00
Houtan Bastani
d70ae4d103
write steady state model
2015-07-28 17:27:56 +02:00
Houtan Bastani
1f2fad8c8d
fix writing for julia
2015-07-27 17:33:22 +02:00
Houtan Bastani
25ae46e204
write dynamic file
2015-07-27 17:02:51 +02:00
Houtan Bastani
b81035a6f3
write static model
2015-07-27 15:33:38 +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
28ffa9c56f
Merge branch 'rmExtraExo'
2015-05-28 12:33:56 +02:00
Houtan Bastani
025e7a13c3
preprocessor: add new field orig_expr for expectation aux vars, closes #773
2015-05-26 15:47:56 +02:00
Houtan Bastani
e389ab90bf
Merge branch 'master' into rmExtraExo
2015-05-18 17:16:55 +02:00
Houtan Bastani
2ab8e2a122
preprocessor: external functions bug fix: fixes the case where an external function is contained in a local variable that’s used in an equation with leads/lags that require auxiliary equations. Closes #916
2015-05-12 16:39:10 +02:00
Houtan Bastani
662c4e64ee
preprocessor: organize external function code
2015-05-11 17:09:29 +02:00
Houtan Bastani
6c937b1554
preprocessor: remove extraneous varexo, update model and statements, #841
2015-03-06 16:44:17 +01:00
Houtan Bastani
dcabcb6b01
preprocessor: new command write_latex_original_model. closes #657
2015-02-16 08:31:30 +01:00
Houtan Bastani
707702a447
Revert "preprocessor: replace oo_.exo_steady_state with steady_state_x, #825"
...
This reverts commit 2bb97a90d6
.
2015-01-14 15:14:57 +01:00
Houtan Bastani
2bb97a90d6
preprocessor: replace oo_.exo_steady_state with steady_state_x, #825
2015-01-14 15:13:48 +01:00
Sébastien Villemot
bdfe4f4249
Fix STEADY_STATE operator for model local variables.
...
Thanks to Tom Holden for spotting the bug.
2014-08-12 18:53:55 +02:00
Sébastien Villemot
2495359919
Fix crash when the model contains 1st or 2nd ext fcn deriv nodes.
...
In the case where the external function computes itself its derivatives, the
TEF terms were not always created before being used, hence leading to a
preprocessor crash. This problem could only happen with ramsey_policy, because
otherwise the model does not contain derivatives of external functions.
2014-03-13 12:27:13 +01:00
Sébastien Villemot
b4c3d004ad
Introduce a new abstract class for external function nodes.
...
This fixes the following bugs:
- 1st and 2nd ext fcn deriv nodes were incorrectly added to
DataTree::external_function_node_map, because of the chaining of
constructors.
- the following methods of FirstDerivExternalFunctionNode were not overloaded:
toStatic(), buildSimilarExternalFunctionNode()
- the following methods of SecondDerivExternalFunctionNode were not overloaded:
toStatic(), buildSimilarExternalFunctionNode(), compile(),
compileExternalFunctionOutput()
2014-03-13 12:12:17 +01:00
Sébastien Villemot
da615507f4
Cosmetic renaming for consistency between DataTree method names.
2014-03-11 18:56:48 +01:00
Sébastien Villemot
f55fda0938
Implement cloneDynamic() for {First,Second}DerivExternalFunction.
...
Since the method was not implement, the method of the parent class was used.
This was leading to wrong results in the context of Ramsey Policy (basically
derivative operators on external functions were dropped from FOCs).
2014-03-11 18:56:48 +01:00
Sébastien Villemot
1f6fd55594
Remove spurious test.
2014-03-11 18:56:48 +01:00
Sébastien Villemot
1faae7bf4c
Fix output of external functions (and their derivatives) in LaTeX.
2014-03-11 15:31:08 +01:00
Sébastien Villemot
0dfd7629b1
Fix bug in external functions introduced in 711a4f62
.
2014-02-25 16:45:55 +01:00
Sébastien Villemot
711a4f62a2
Small improvements to external functions code.
2014-02-24 17:27:34 +01:00
Michel Juillard
49b34d4c94
write C++ version of model functions without temporary terms
2014-02-24 13:33:48 +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
e4526944a9
Remove select1st (GNU extension), replace it by a call to boost::bind
2013-11-05 18:13:29 +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
Sébastien Villemot
7bbe121769
Possibility of restricting differentiate_forward_vars to some variables
...
Closes #351
2013-05-17 16:53:15 +02:00
Sébastien Villemot
75b5f1d18a
Add new model option 'differentiate_forward_vars' (ref. #351 )
2013-04-25 18:09:31 +02:00
Sébastien Villemot
38824dc1e5
Implement tags [static] and [dynamic] for equations
...
Closes #307
2013-04-11 17:11:35 +02:00
Michel Juillard
39cc313964
removed changes linked with transforming variables to avoid log or
...
power of negative numbers
2013-04-09 16:35:57 +02:00
Sébastien Villemot
a0b7178962
Automatic detrending engine can now handle models written in logs (ref. #309 )
...
- new command `log_trend_var'
- new option `log_deflator' to `var' command
2013-03-26 16:51:17 +01:00
Sébastien Villemot
c681b5e4ed
Revert spurious preprocessor changes introduced in dfa744f
2013-03-26 16:51:10 +01:00