Commit Graph

181 Commits (74ed99c6cac1df5456f197cea88ca054353c59f1)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 6c0ab379ad Fixed code indentation. 2017-06-14 07:01:31 +02:00
Houtan Bastani 9f7b084970 Merge branch 'master' into json 2017-03-10 17:20:15 +01:00
Houtan Bastani 99d948463e Revert "preprocessor: write equation cross references in JSON. #1387"
This reverts commit 0ccc82300c.
2017-03-10 17:18:41 +01:00
Houtan Bastani ea13b12cf2 preprocessor: add lag info to equation cross references. closes #1398 2017-03-10 16:59:52 +01:00
Houtan Bastani 0ccc82300c preprocessor: write equation cross references in JSON. #1387 2017-03-06 16:34:08 +01:00
Houtan Bastani e07e393642 preprocessor: fix JSON bugs. #1387 2017-02-27 14:23:55 +01:00
Houtan Bastani a4171ad4ab preprocessor: output JSON after different steps, write static, dynamic, params derivs files in JSON. #1387 2017-02-24 17:43:22 +01:00
Houtan Bastani d05dd34d30 preprocessor: write JSON output. #1387 2017-02-06 17:41:18 +01:00
Houtan Bastani f0909834c0 preprocessor: external_function: add comma to function output args 2016-08-25 15:35:32 +02:00
Houtan Bastani 7680749130 preprocessor: issue error when exogenous included in planner_objective. closes #1264 2016-08-12 11:50:57 +02:00
Houtan Bastani 25121bca4f fix copyright dates 2016-05-04 16:05:31 +02:00
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