Houtan Bastani
6436449961
preprocessor: JSON: place local variables in one list. Closes #1495
2017-11-06 15:21:11 +01: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
Stéphane Adjemian (Charybdis)
7af01dd0a2
Merge branch 'master' into json
2017-06-16 20:03:36 +02:00
Houtan Bastani
7153f19aab
preprocessor: remove comparison warnings from compilation of ModelTree.cc
2017-06-14 23:49:10 +02:00
Houtan Bastani
6255858d21
preprocessor: fix bug: check whether second string in pair is empty. closes #1469
2017-06-14 23:40:30 +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
5021601b5b
preprocessor: move equation tags out of dmath mode, include all equation tags in one set of brackets, allow equation tags to be interpreted as latex, modify manual and test accordingly. #477
2017-04-05 11:01:25 +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
Houtan Bastani
3eddd5ce88
preprocessor: split equation output into lhs and rhs. #1387
2017-03-15 12:52:55 +01:00
Houtan Bastani
bab5d9bea1
Merge branch 'master' into json
2017-03-10 17:20:15 +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
1b3cccb602
Merge branch 'master' into json
2017-03-03 14:42:25 +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
236f1ca7d0
preprocessor: fix JSON bugs. #1387
2017-02-27 14:23:55 +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
64642d928c
preprocessor: write JSON output. #1387
2017-02-06 17:41:18 +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
bf19a0aa73
fix warnings introduced in 3b20d41a92db4267c0ba13278f3885aba67e6c47 related to size_t/int comparison #1201
2017-01-02 11:38:13 +01:00
Houtan Bastani
471df861fa
3b20d41a92db4267c0ba13278f3885aba67e6c47 used to_string from C++11 standard which breaks the snapshot build. #1201
2017-01-02 11:21:28 +01:00
Houtan Bastani
f32b24a591
avoid unnecessary processing when a stream has 32 or fewer nested parenthesis. #1201
2016-12-30 18:32:20 +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
77c8a41514
preprocessor: fix bug in writing of temporary terms. closes #1201
2016-06-01 15:29:10 +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
de9d05aac4
Revert "preprocessor: params_derivs_file: by default, compute second order derivs wrt params; simplify code; #1187"
...
This reverts commit 1442f83037e9d66a718a0fd446faddae5ebbf58b.
2016-05-17 15:37:29 +02:00
Houtan Bastani
9202c1e6c2
preprocessor: params_derivs_file: by default, compute second order derivs wrt params; simplify code; #1187
2016-05-13 10:48:49 +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
Ferhat Mihoubi
4419b9e9e6
Fix :
...
"Bytecode does not enforce positivity constraint on irreversible investment model #439 "
when block model option is used.
When cutoff is set to 0 the block decomposition is performed on the incidence matrix instead of the static Jacobian matrix. This correction avoids to use derivatives on logical operators that are always equal to 0.
2016-03-25 15:38:49 +01: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
e342858d04
preprocessor: initialize xref structure and use indices. closes #1125
2016-02-23 14:32:48 +01:00
Houtan Bastani
702af9c9bf
preprocessor: print reverse references (param->eqs, endo->eqs, exo->eqs, exo_det->eqs)
2015-12-18 17:13:50 +01:00
Houtan Bastani
de0ce35ee3
preprocessor: add equation cross references
2015-12-18 15:17:32 +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
Houtan Bastani
d8fcf00d0c
preprocessor: fix bug when printing model variables containing underscores in latex file. closes #1059
2015-09-16 12:22:39 +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
82cee99723
temp
2015-09-02 18:50:09 +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
31c45684e0
preprocessor: add const declaration to temporary terms
2015-09-01 14:58:46 +02:00
Houtan Bastani
d3a76b9a3a
preprocessor: fix typo in julia temporary terms output
2015-09-01 14:34:40 +02:00
Houtan Bastani
5c0c9efd6f
add @inbounds to model equations, temporary vars, and model vars
2015-08-21 17:13:38 +02:00