Houtan Bastani
c35938929f
remove fill!(residual, 0.0) statements as all elements of residual are assigned to
2015-08-21 17:13:38 +02:00
Houtan Bastani
5c0c9efd6f
add @inbounds to model equations, temporary vars, and model vars
2015-08-21 17:13:38 +02:00
Houtan Bastani
4a4a4c1d54
clean up printing
2015-08-21 17:13:32 +02:00
Houtan Bastani
34e649afc7
add assertions at beginning of function call
2015-08-21 12:05:38 +02:00
Houtan Bastani
fb51517ac7
fix comments in generated files
2015-08-21 12:00:47 +02:00
Houtan Bastani
c1d3b521ed
update static & dynamic function comments
2015-08-20 15:28:32 +02:00
Houtan Bastani
5789d1f33b
check function output argument sizes
2015-08-20 15:26:10 +02:00
Houtan Bastani
87ddbce87b
write third derivatives of static and dynamic functions more efficiently
2015-08-20 14:41:15 +02:00
Houtan Bastani
3419772879
fix typo in 357afaab47ebe52cecdffb8a7f8b12c754f22470
2015-08-20 14:02:22 +02:00
Houtan Bastani
cb0b8c9ba3
update comments in static & dynamic funcitons
2015-08-20 12:27:43 +02:00
Houtan Bastani
046bc44e8a
write Hessians of static and dynamic functions more efficiently
2015-08-20 12:18:19 +02:00
Houtan Bastani
4808c8a1ce
replace zeros with fill! and remove spzeros in static and dynamic functions
2015-08-20 11:33:19 +02:00
Houtan Bastani
a10efd7c4b
replace empty sparse calls with spzeros
2015-08-19 17:12:06 +02:00
Houtan Bastani
22f409af4f
fix type in function header
2015-08-19 14:38:35 +02:00
Houtan Bastani
1b0d63abe9
add types to dynamic, static, and steady_state function calls
2015-08-19 12:11:08 +02:00
Houtan Bastani
cbe1027428
remove unnecessary get*Function functions
2015-08-19 11:28:25 +02:00
Houtan Bastani
73a25ed90c
adding using Utils to dynamic & static files
2015-08-18 15:45:23 +02:00
Houtan Bastani
c8f9e1229f
update static model to use multiple dispatch
2015-08-18 15:42:24 +02:00
Houtan Bastani
f0cc9c4151
modify *_set_auxiliary_variables to work in julia
2015-08-17 15:36:18 +02:00
Houtan Bastani
389bb89a55
simplify modules created by preprocessor
2015-07-28 18:00:00 +02:00
Houtan Bastani
ff3e14656d
bug fix in writing of static params derivs
2015-07-28 14:42:10 +02:00
Houtan Bastani
d7ad832c1d
write static param derivs file
2015-07-28 12:29:42 +02:00
Houtan Bastani
6fc6f2f7d1
clean up writing of static model
2015-07-27 15:59:13 +02:00
Houtan Bastani
f3c14ec396
write static model
2015-07-27 15:33:38 +02:00
Houtan Bastani
947ca38440
preprocessor: split creation of latex model files. closes #966
2015-07-15 08:58:15 +02:00
Houtan Bastani
ec82663580
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
1c1d3e8bfc
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
7a3ff5b7fc
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
892b565fc8
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
8882f809c3
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
9dfcf897f7
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
9d3722fdcb
Add full function header to static and dynamic model files
2013-07-28 11:32:14 +02:00
Sébastien Villemot
abd5bfda50
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
dc1be70d82
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
47c83d839e
Remove duplicate information in M_.blocksMFS
2012-11-16 17:39:03 +01:00
Sébastien Villemot
0cae76f0eb
Remove duplicate information in M_.blocksEQU
2012-11-16 17:16:40 +01:00
Sébastien Villemot
4541e17e83
Remove various compiler warnings
2012-06-08 19:06:03 +02:00
Sébastien Villemot
67a1737f00
Update copyright notices
2012-06-08 18:22:34 +02:00
Ferhat Mihoubi
6d67c4b9b8
Add options static to model_info command and fixes the ticket #134
2012-06-06 16:36:56 +02:00
Michel Juillard
7093a54f3a
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
715df0c634
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
67f3a0ecc0
preprocessor: separate dynamic and static functions from their mexfiles
2011-12-23 18:22:41 +01:00
Michel Juillard
16f550a986
preprocessor, auxiliary variables: fixes ordering issue introduced in
...
347ab4d0c0c79ae9a42898c1d5409d78708bb8a8 and corrects the earlier
ordering problem.
2011-09-28 22:11:44 +02:00
Michel Juillard
09a6b96c5f
preprocessor: modified order of auxiliary variables definitions
2011-09-25 20:21:30 +02:00
Houtan Bastani
5dc9092723
cosmetic: simplify jacobianHelper, hessianHelper and sparseHelper functions and fix spacing in dynamic file
2011-08-19 16:59:18 +02:00
Houtan Bastani
31ff8da853
remove unused variables from preprocessor
2011-08-19 16:59:12 +02:00
Houtan Bastani
5c48733f55
output mex file for static model ( closes #183 )
2011-08-19 16:57:27 +02:00
Houtan Bastani
c6a33a96f1
remove writing of getPowerDeriv M function from block code functions
2011-07-25 10:21:02 +02:00
Michel Juillard
4d4456b8d6
adding creation of <fname>_set_auxiliary_variables.m containing recursive definition of auxiliary variables
2011-07-24 20:56:30 +02:00
Houtan Bastani
1e4c0852f6
bug fix: getPowerDeriv not accessible from modfile.m
2011-07-19 14:35:35 +02:00