Houtan Bastani
6e9e2eac40
preprocessor: write JSON output for cross refs #1387
2017-03-10 17:28:25 +01:00
Houtan Bastani
bab5d9bea1
Merge branch 'master' into json
2017-03-10 17:20:15 +01:00
Houtan Bastani
cde54d7ad4
Revert "preprocessor: write equation cross references in JSON. #1387"
...
This reverts commit 0ccc82300c3046d159554c24027ded09a93b687e.
2017-03-10 17:18:41 +01:00
Houtan Bastani
b4ac9aac8d
preprocessor: add lag info to equation cross references. closes #1398
2017-03-10 16:59:52 +01:00
Houtan Bastani
2a3ef9d168
preprocessor: write equation cross references in JSON. #1387
2017-03-06 16:34:08 +01:00
Houtan Bastani
746f88eb6e
preprocessor: create two different static and dynamic files with the option jsonprintderivdetail. #1387
2017-03-03 14:42:37 +01:00
Houtan Bastani
1b3cccb602
Merge branch 'master' into json
2017-03-03 14:42:25 +01:00
Houtan Bastani
5fbadbadd3
preprocessor: make JSON output start counting at 1 instead of 0. #1387
2017-03-02 17:34:34 +01:00
Houtan Bastani
fc48bf26b9
preprocessor: write error messages to cerr instead of cout, replace \n with endl
2017-03-01 12:44:31 +01:00
Houtan Bastani
301c9691d9
preprocessor: JSON output aesthetic fixes, support planner objective. #1387
2017-02-27 15:40:34 +01:00
Houtan Bastani
915bea91a1
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
ad84914118
preprocessor: for consistency, use equations.size() instead of equation_number() in classes that have equations as a field
2017-02-24 11:20:54 +01:00
Houtan Bastani
5e1d20c8d9
preprocessor: replace exit(1) with exit(EXIT_FAILURE)
2017-02-09 12:46:37 +01:00
Houtan Bastani
64642d928c
preprocessor: write JSON output. #1387
2017-02-06 17:41:18 +01:00
Houtan Bastani
a8cb5d7e61
fix nested parens for params derivatives. closes #1201
2017-01-05 18:19:37 +01:00
Houtan Bastani
a14fdd204f
when >32 nested parens encountered in matlab, print error message once per file in which such a situation occurred. #1201
2017-01-05 15:19:13 +01:00
Houtan Bastani
eac97a8f49
first iteration of fix for nested parenthesis in matlab. #1201
2016-12-30 18:14:08 +01:00
Houtan Bastani
486891e75f
bug fix: end preprocessing with error when more than 32 nested parenthesis are encountered. closes #1201
2016-12-28 14:02:50 +01:00
Houtan Bastani
453b753021
block: fix bug introduced in e410043c244d251164638f9a0b3646e23e3d125d. #1245
2016-11-29 16:45:50 +01:00
Houtan Bastani
67c4bd0126
block: add default argument for _dynamic functions: `varargout{1} = NaN;` #1245
2016-11-29 15:18:59 +01:00
Houtan Bastani
b2963ae558
preprocessor: define var for normcdf + msvc. #1259
2016-10-17 14:59:07 +02:00
Houtan Bastani
61b2be2a2c
preprocessor: add normcdf for MSVC. closes #1259
2016-10-14 16:11:44 +02:00
Houtan Bastani
2385b7b5c1
preprocessor: clean up writePowerDeriv code. it only writes C code, so no need for use_dll argument
2016-10-14 14:30:14 +02:00
Johannes Pfeifer
3fada757d6
Correct comment in _dynamic files that misstated columns of derivative matrices
2016-08-22 19:24:35 +02:00
Houtan Bastani
e4745e040a
preprocessor: Return equation numbers/tags in error message when linear model contains nonzero hessian entries. #419
2016-07-27 15:01:54 -04:00
Stéphane Adjemian (Hermes)
35da55ab03
Fixed dynamic model (julia output)
...
The number of columns in the Jacobian matrix is the number of endogenous
variables appearing at time t-1, t and t+1 plus the number of exogenous
variables.
2016-06-14 11:21:23 +02:00
Houtan Bastani
77c8a41514
preprocessor: fix bug in writing of temporary terms. closes #1201
2016-06-01 15:29:10 +02:00
Stéphane Adjemian (Hermes)
0751b50a86
Bug fix in assert (Julia output).
...
See PR #1102 by spencerlyon2.
size always returns a tuple, and we were comparing to an int. Dispatch restricts these arguments to all be vectors so length works here.
2016-05-23 13:48:19 +02:00
Stéphane Adjemian (Hermes)
59740f6804
Fixed type issues.
...
params, exo_steady_state and steady_state are vectors not matrices!
2016-05-23 13:48:19 +02:00
Stéphane Adjemian (Hermes)
0d8e583daa
Cosmetic changes.
...
+ Renamed model as model_
+ Renamed options as options_
+ Renamed output as oo_
+ Also export oo_ and options_
+ Fixed typos in comments.
2016-05-23 13:48:19 +02:00
Houtan Bastani
323fe8d41a
preprocessor: replace no_2nd_order_params_derivs with params_deriv_order. #1187
2016-05-18 12:26:19 +02:00
Houtan Bastani
48928c61ce
Revert "preprocessor: add params_derivs_order to identification and sensitivity. #1187"
...
This reverts commit 6192a6a7765e7bde388f4a6feac4362d1e9fd284.
2016-05-18 10:33:45 +02:00
Houtan Bastani
b898bfea6e
preprocessor: add params_derivs_order to identification and sensitivity. #1187
2016-05-17 17:18:16 +02:00
Houtan Bastani
0b922739a6
preprocessor: only compute first order derivatives w.r.t. parameters with identification. closes #1187
2016-05-12 12:02:34 +02:00
Johannes Pfeifer
62eb7e7443
Add headers for param_derivs-files
2016-03-29 15:57:49 +02:00
Stéphane Adjemian (Hermes)
0f794948ff
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
50a4d50821
preprocessor: introduce new option compute_xrefs, #1125
2016-02-23 13:57:55 +01:00
Houtan Bastani
de0ce35ee3
preprocessor: add equation cross references
2015-12-18 15:17:32 +01:00
Houtan Bastani
5884c04287
preprocessor: fix divergence of equations and aux_equations. closes #1110
2015-12-01 12:34:43 +01:00
Houtan Bastani
45919774ab
Revert "preprocessor: write auxiliary variable definitions to matlab function"
...
This reverts commit ad81129a9b90dab50799bd4589b635420918cf1f.
2015-12-01 11:41:55 +01:00
Houtan Bastani
fd1e0ee1e2
preprocessor: write auxiliary variable definitions to matlab function
2015-11-30 15:36:17 +01:00
Michel Juillard
74647e2872
fixed bug in col_id computation
2015-09-19 15:51:32 +02:00
Houtan Bastani
3117bf79f2
preprocessor: fix scoping problem with temporary variables
2015-09-04 15:28:06 +02:00
Houtan Bastani
0f75ddbd64
replace cend with end and cbegin with begin
2015-09-03 16:06:37 +02:00
Houtan Bastani
13be25314e
preprocessor: rework temporary terms
2015-09-03 15:25:36 +02:00
Houtan Bastani
62249da603
preprocessor: fix bug introduced in eb2890d1f58f2285306821c85fa631b865fb80b6
2015-09-02 15:30:33 +02:00
Houtan Bastani
2618211859
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 eb2890d1f58f2285306821c85fa631b865fb80b6)
2015-09-02 15:30:25 +02:00
Houtan Bastani
7c28c672a4
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 eb2890d1f58f2285306821c85fa631b865fb80b6.
2015-09-02 15:29:52 +02:00
Houtan Bastani
7f014b94df
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
7cc90013cd
Merge branch 'julia'
2015-09-01 11:35:16 +02:00