Commit Graph

318 Commits (9c9e8f816f056fb4f9f2b17234ba7c100f3a996a)

Author SHA1 Message Date
Houtan Bastani 9c9e8f816f preprocessor: list nonlinear equations in .m file 2018-01-11 12:55:36 +01:00
Houtan Bastani dad94a7d58 preprocessor: clean up xref JSON printing 2017-10-13 16:21:13 +02:00
Houtan Bastani 6c9c01fe09 preprocessor: add missing fill! statements to static/dynamic functions 2017-10-02 11:14:35 +02:00
Houtan Bastani b398b379fc preprocessor: perpetuate nopreprocessoroutput option to preprocessor code #1390 2017-09-28 14:58:25 +02:00
Houtan Bastani 49ec4f3545 Merge branch 'state_var' 2017-08-29 16:08:11 +02:00
Houtan Bastani 076fb75f98 preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563 2017-08-28 17:24:56 +02:00
Houtan Bastani 48d6155dbc preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431 2017-08-24 16:10:53 +02:00
Houtan Bastani 2930977129 preprocessor: store max lead/lag info, write to output 2017-07-27 12:33:19 -04:00
Houtan Bastani 955fb4f003 preprocessor: print JSON deriv detail by default; use option to print less-detailed versions of dynamic/static models 2017-06-29 13:08:41 +02:00
Houtan Bastani c59b6ab035 preprocessor: write certain variables from M_ to JSON output 2017-06-28 17:11:24 +02:00
Stéphane Adjemian (Charybdis) 507fad86a3 Cosmetic change.
A "lag"" key with a negative value should be interpreted as a lead (and not a
lag). Possible solutions are (1) Change the sign of the value, (2) Add a new
key "lead" and consider only positive values, and (3) Change the key name for
"shift" with negative values for lags and positive values for leads.

The commit implements the third choice.
2017-06-28 15:49:09 +02:00
Sébastien Villemot ec561138d4 Fix various typos (thanks lintian). 2017-06-28 15:06:54 +02:00
Houtan Bastani c66e000b5b preprocessor: remove warning on int/size_t comparison 2017-06-28 12:06:20 +02:00
houtanb e6c5a8000b preprocessor: write original model in JSON output after computing pass 2017-06-23 14:20:48 +02:00
houtanb 95dda50de1 preprocessor: add tag information to cloned dynamic model 2017-06-23 14:19:57 +02:00
Stéphane Adjemian (Charybdis) 7af01dd0a2 Merge branch 'master' into json 2017-06-16 20:03:36 +02:00
Stéphane Adjemian (Charybdis) 51feda7d02 Fixed code indentation. 2017-06-14 07:01:31 +02:00
Stéphane Adjemian (Charybdis) d2b7503e1c Fixed indentation of c/h/cc/hh files. 2017-05-16 16:30:27 +02:00
Houtan Bastani a85cc7b451 preprocessor: change trend test to warning. #1389 2017-04-20 18:41:28 +02:00
Houtan Bastani 053407314d preprocessor: add option to write equation tags in latex output. closes #477 2017-04-04 16:08:30 +02:00
Johannes Pfeifer 5a35040126 Make sure block-decomposed model returns with correct error code if Inf or NaN is encountered
Missing from 5f85d3a2005ae1d2b3650776cc33830967721159 where only residual was set to error code. If oo_.deterministic_simulation.status is not set to 0, model will erroneously be considered as solved and homotopy will not be triggered.
2017-03-17 10:07:13 +01:00
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
Houtan Bastani c4ef3575f2 preprocessor: always write M_.state_var #637 2016-07-20 17:09:46 -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