Houtan Bastani
1d17f6b770
remove fill!(residual, 0.0) statements as all elements of residual are assigned to
2015-08-21 17:13:38 +02:00
Houtan Bastani
d2c3debeb8
add @inbounds to model equations, temporary vars, and model vars
2015-08-21 17:13:38 +02:00
Houtan Bastani
2a9761ff33
clean up printing
2015-08-21 17:13:32 +02:00
Houtan Bastani
5666e12e8f
add assertions at beginning of function call
2015-08-21 12:05:38 +02:00
Houtan Bastani
59122a1e73
fix comments in generated files
2015-08-21 12:00:47 +02:00
Houtan Bastani
73a0ad51d6
update static & dynamic function comments
2015-08-20 15:28:32 +02:00
Houtan Bastani
a686a47ce7
check function output argument sizes
2015-08-20 15:26:10 +02:00
Houtan Bastani
b00ed9f0a4
write third derivatives of static and dynamic functions more efficiently
2015-08-20 14:41:15 +02:00
Houtan Bastani
129c8d9e46
fix typo in 357afaab47
2015-08-20 14:02:22 +02:00
Houtan Bastani
357afaab47
update comments in static & dynamic funcitons
2015-08-20 12:27:43 +02:00
Houtan Bastani
c4d3eb5b3c
write Hessians of static and dynamic functions more efficiently
2015-08-20 12:18:19 +02:00
Houtan Bastani
a244754a15
replace zeros with fill! and remove spzeros in static and dynamic functions
2015-08-20 11:33:19 +02:00
Houtan Bastani
6572b6f14f
replace empty sparse calls with spzeros
2015-08-19 17:12:06 +02:00
Houtan Bastani
996f67c622
fix type in function header
2015-08-19 14:38:35 +02:00
Houtan Bastani
0f76765bd8
add types to dynamic, static, and steady_state function calls
2015-08-19 12:11:08 +02:00
Houtan Bastani
d65e9306cb
remove unnecessary get*Function functions
2015-08-19 11:28:25 +02:00
Houtan Bastani
6ac346606b
adding using Utils to dynamic & static files
2015-08-18 15:45:23 +02:00
Houtan Bastani
2e7e9bc8f0
update static model to use multiple dispatch
2015-08-18 15:42:24 +02:00
Houtan Bastani
bba553ff32
modify *_set_auxiliary_variables to work in julia
2015-08-17 15:36:18 +02:00
Houtan Bastani
bc49d06e61
simplify modules created by preprocessor
2015-07-28 18:00:00 +02:00
Houtan Bastani
b8d69721e2
bug fix in writing of static params derivs
2015-07-28 14:42:10 +02:00
Houtan Bastani
c22cc15655
write static param derivs file
2015-07-28 12:29:42 +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
7740fdaca0
preprocessor: split creation of latex model files. closes #966
2015-07-15 08:58:15 +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
Johannes Pfeifer
7ead968240
Add info to dynamic and static file headers that auxiliary equations may be present
2014-07-17 20:39:59 +02:00
Sébastien Villemot
9c556f709b
Merge pull request #636 from JohannesPfeifer/preprocessor
...
Fix comments in header of dynamic and static files
2014-03-17 15:10:31 +01:00
Johannes Pfeifer
370df16cfc
Fix comments in header of dynamic and static files
...
Columns and rows were confused
2014-03-14 10:21:42 +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
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
Johannes Pfeifer
a7eedef031
Add full function header to static and dynamic model files
2013-07-28 11:32:14 +02:00
Sébastien Villemot
aafff99422
Fix breakage of static file introduced by 8c83135c
...
In StaticModel, deriv_ids are no longer equal to symb_ids; some parts of the
code were relying on that assumption
2012-12-01 23:32:24 +01:00
Sébastien Villemot
8c83135c0f
Add derivatives of static model w.r.t. parameters
...
The new file is <FILENAME>_static_params_derives.m
Closes : #160
2012-11-29 18:07:48 +01:00
Sébastien Villemot
31a13db66a
Remove duplicate information in M_.blocksMFS
2012-11-16 17:39:03 +01:00
Sébastien Villemot
bf19ab801f
Remove duplicate information in M_.blocksEQU
2012-11-16 17:16:40 +01:00
Sébastien Villemot
c079ace8c3
Remove various compiler warnings
2012-06-08 19:06:03 +02:00
Sébastien Villemot
1f9cea669a
Update copyright notices
2012-06-08 18:22:34 +02:00
Ferhat Mihoubi
b72dafcb82
Add options static to model_info command and fixes the ticket #134
2012-06-06 16:36:56 +02:00
Michel Juillard
6b100d3dbe
fixes the correction of the Jacobian when encountering complex
...
numbers. This should be 2*imag(g1) and not imag(g1).^2
2012-05-18 16:19:07 +02:00
Ferhat Mihoubi
dfbd6c8f2a
Adds the index of equations (M_.blocksEQU) for a block decomposed model without bytecode option and use this index in resid.m to retrieve the residuals
2012-03-08 15:29:56 +01:00
Houtan Bastani
5c0a17e9f2
preprocessor: separate dynamic and static functions from their mexfiles
2011-12-23 18:22:41 +01:00
Michel Juillard
762f31bafd
preprocessor, auxiliary variables: fixes ordering issue introduced in
...
347ab4d0c0
and corrects the earlier
ordering problem.
2011-09-28 22:11:44 +02:00
Michel Juillard
347ab4d0c0
preprocessor: modified order of auxiliary variables definitions
2011-09-25 20:21:30 +02:00
Houtan Bastani
426682d632
cosmetic: simplify jacobianHelper, hessianHelper and sparseHelper functions and fix spacing in dynamic file
2011-08-19 16:59:18 +02:00
Houtan Bastani
65d05f1a31
remove unused variables from preprocessor
2011-08-19 16:59:12 +02:00
Houtan Bastani
7357a23114
output mex file for static model ( closes #183 )
2011-08-19 16:57:27 +02:00
Houtan Bastani
46e0873eef
remove writing of getPowerDeriv M function from block code functions
2011-07-25 10:21:02 +02:00
Michel Juillard
f5e453343f
adding creation of <fname>_set_auxiliary_variables.m containing recursive definition of auxiliary variables
2011-07-24 20:56:30 +02:00
Houtan Bastani
509cc15191
bug fix: getPowerDeriv not accessible from modfile.m
2011-07-19 14:35:35 +02:00