Houtan Bastani
97af0ff711
fix bug in updating variables in var model table
2018-08-23 10:28:19 +02:00
Houtan Bastani
0c66e724cb
fix typo
2018-08-22 17:09:16 +02:00
Houtan Bastani
54df07d0e0
remove unnecessary comment
2018-08-22 17:01:03 +02:00
Houtan Bastani
7d9072a227
var_expectation: rename var_model_name to aux_model_name
2018-08-22 16:57:36 +02:00
Stéphane Adjemia (Scylla)
a406c18598
Allow trend_component_model in var_expectations.
2018-08-22 16:50:01 +02:00
Houtan Bastani
1874fa5cce
remove unused variable
2018-08-22 16:01:10 +02:00
Houtan Bastani
80c45ee116
fix bug with max_lag of var model
2018-08-22 15:59:12 +02:00
Houtan Bastani
0af91c26f8
aesthetic fix
2018-08-22 15:12:17 +02:00
Houtan Bastani
91b7888e61
print nonstationary field for trend_component and var models
2018-08-22 14:29:07 +02:00
Houtan Bastani
1918a56a70
fix bug in 539fddc9f6
2018-08-22 12:56:16 +02:00
Houtan Bastani
539fddc9f6
introduce var model table
2018-08-22 12:15:02 +02:00
Houtan Bastani
6015b0e57b
fixes to trend component model
2018-08-22 12:15:02 +02:00
Houtan Bastani
0d5dd11106
fix typo
2018-08-20 10:50:28 +02:00
Houtan Bastani
afe0e475b1
trend_component_model statement
2018-08-17 16:52:48 +02:00
Houtan Bastani
618147a126
fix typo
2018-08-16 11:09:54 +02:00
Stéphane Adjemian(Charybdis)
74b693a1ec
Cosmetic change.
2018-08-14 16:46:43 +02:00
Stéphane Adjemian(Charybdis)
adbeb49b29
Do not print non optimizing behaviour field in PAC if empty.
2018-08-14 16:45:01 +02:00
Houtan Bastani
ac850f5187
pac: stop processing of PAC equation if optimizing share parameter is hard-coded
2018-08-13 17:22:28 +02:00
Houtan Bastani
d3bd6ace90
pac: print optimizing share parameter
2018-08-13 17:00:47 +02:00
Houtan Bastani
edc242d471
preprocessor: find optimizing shares of agents in PAC equation
2018-08-13 14:34:57 +02:00
Houtan Bastani
c5c61f99ba
fix bug with max_lag reported for PAC equation
2018-08-13 12:12:20 +02:00
Houtan Bastani
0dffee4650
fix typo
2018-08-13 11:08:58 +02:00
Houtan Bastani
d657f77149
fix typo :)
2018-08-09 13:27:05 +02:00
Houtan Bastani
719630a53c
macroprocessor: allow looping over tuples. #5
2018-08-08 17:23:33 +02:00
Houtan Bastani
ca066ea398
macroprocessor: introduce shortcut for Cartesion product (^). #5
2018-08-08 15:58:49 +02:00
Houtan Bastani
d9c0568075
macroprocessor: introduce Cartesion product. #5
2018-08-08 15:11:06 +02:00
Houtan Bastani
e24cabe3a5
var_expectation: print type specific id for discount index
2018-08-08 14:59:50 +02:00
Houtan Bastani
27d088da7e
macroprocessor: fix bug in set difference introduced in 5f1465f9
2018-08-08 14:35:09 +02:00
Houtan Bastani
428b5023d3
macroprocessor: intersection operator. #5
2018-08-08 14:15:39 +02:00
Houtan Bastani
039b27bbaf
macroprocessor: union operator. #5
2018-08-08 14:12:04 +02:00
Houtan Bastani
1285473aa1
macroprocessor: introduce tuple type. #5
2018-08-07 17:36:13 +02:00
Houtan Bastani
c342489397
update gitignore to ignore output files created by preprocessor
2018-08-07 17:19:45 +02:00
Houtan Bastani
88a0162202
macroprocessor: remove terminals not used in grammar
2018-08-07 17:19:45 +02:00
Stéphane Adjemian(Charybdis)
b20da7c43f
Fixed timing issue in VAR_EXPECTATION expansion.
2018-08-06 21:36:52 +02:00
Stéphane Adjemian(Charybdis)
32da131a77
Added associated index in M_.endo_names for expected variable.
2018-08-04 19:50:12 +02:00
Stéphane Adjemian(Charybdis)
ed32caeb46
Added missing field in VAR_EXPECTATION_MODEL description (variable).
2018-08-04 12:03:53 +02:00
Stéphane Adjemian(Charybdis)
022395aaf6
Fixed param_indices vector for VAR_EXPECTATION_MODEL.
2018-08-04 11:46:31 +02:00
Sébastien Villemot
f3c2a1bf87
New var_expectation_model statement and re-design of var_expectation operator
...
Given a previously declared var_model, the var_expectation_model statement is
used to declare a way of forming expectations with this VAR (possibly using a
finite or infinite discounted sum). The var_expectation operator now takes a
single argument, the name of the var_expectation_model.
For the moment, this only works when the var_model is using equations
explicitly declared in the model block.
2018-08-02 08:39:09 +02:00
Sébastien Villemot
8a03532c78
ParsingDriver: factorize code to check symbol types
2018-08-01 10:47:56 +02:00
Sébastien Villemot
122e154764
PlannerObjectiveStatement now owns its model_tree
...
By the way, error out if the planner_objective statement is used two times.
2018-07-31 13:00:41 +02:00
Sébastien Villemot
0a063eecc1
More smart pointers
2018-07-31 13:00:39 +02:00
Sébastien Villemot
66a712253a
Macroprocessor: cosmetic change
2018-07-31 12:02:26 +02:00
Sébastien Villemot
df01e52859
Use new syntax for various Bison options
2018-07-31 12:02:26 +02:00
Sébastien Villemot
4302307f7d
Force Emacs to use C++ mode when opening Bison and Flex files
2018-07-31 12:02:24 +02:00
Sébastien Villemot
7280c92642
Use variant semantic values in the Bison parser
...
We can therefore manipulate objects by value rather than by pointers, which
saves a lot of memory manipulations (and avoid potential segfaults and memory
leaks).
Note that there is no default action ("$$ = $1") when using the variant type,
so we add them explicitly.
2018-07-31 11:48:08 +02:00
Sébastien Villemot
725b91e5d6
Several fixes to computing tasks statements
...
- store objects whose persistence is not guaranteed (e.g. strings) as values
instead of references (to avoid possible segfaults)
- on the contrary, always store the SymbolTable as a reference, since its
persistence is guaranteed, and we don't want to copy it
- use pass-by-value in constructors whenever possible
- remove useless const keyword when passing by value
2018-07-31 10:51:28 +02:00
Sébastien Villemot
107ad1432b
Fix various Bison warnings
2018-07-30 19:38:46 +02:00
Sébastien Villemot
45cd8e6853
Fix regression in nested diffs introduced in 90d8b579
...
See McModelTeam/McModelProject/issues/97.
2018-07-30 12:53:23 +02:00
Sébastien Villemot
b9ee0bb204
aux_equations may diverge from those in the main model
...
aux_equations only contain the definition of auxiliary variables, and
may diverge from those in the main model (equations), if other model
transformations applied subsequently. This is not a problem, since
aux_equations is only used for regenerating the values of auxiliaries
given the others.
For example, such a divergence appears when there is an expectation
operator in a ramsey model, see
tests/optimal_policy/nk_ramsey_expectation.mod */
2018-07-27 14:20:36 +02:00
Sébastien Villemot
762f25abe9
Remove useless separate list for diff auxiliary variables
...
This table serves no useful purpose. It is better to append auxiliary equations
at the time they are created, to avoid messing with the recursive ordering.
2018-07-26 17:41:58 +02:00