Commit Graph

11 Commits (master)

Author SHA1 Message Date
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Stéphane Adjemian (Charybdis) f3d45542fa
Fixed call to exactstrrep (adding missing parenthesis around expression). 2020-02-12 17:21:00 +01:00
Stéphane Adjemian (Charybdis) 48b5005ed3
More factorizatiion when calling loadjson_ routine. 2020-02-03 18:12:14 +01:00
Stéphane Adjemian (Charybdis) 3746d6254a Cosmetic change. Removed warning backtrace. 2019-11-02 17:48:06 +01:00
Stéphane Adjemian (Charybdis) 55a63d3da7 Fixed substitution for lagged variables unavailable in the database. 2019-10-02 10:41:32 +02:00
Stéphane Adjemian (Charybdis) 2cfff70a64 Fixed bug (wrong index in loop i -> j). 2019-07-17 17:59:21 +02:00
Stéphane Adjemia (Scylla) fe4a15e417
Fixed bug if LHS no present in datablase.
Removed range on the left hand side.
2019-04-11 10:13:34 +02:00
Stéphane Adjemia (Scylla) ba46992e18
Bug fix (filter out lhs variable). 2019-04-10 10:40:41 +02:00
Stéphane Adjemia (Scylla) 8740355407
Rewrote evaluate routine.
- Can handle more than one equation.
 - Can handle identities.
 - Forbids dynamic equations.
 - Can handle following LHS y, diff(y), diff(diff(y)), log(y), diff(log(y)) and
   diff(diff(log(y))), other transformations will result in an error.
 - Added integration tests.

Remark 1. In the integration tests I compare the values returned by the
          evaluate routine with the values computed with the simulation
          routines. Normally the discrepancies should be small, but this is not
          the case when the endogenous variable appear under a log on the
          LHS. My current conclusion is that this has more to do with the
          cumulation of the accuracy errors in the simulation routine (a
          sequence of Newton algorithms) rather than with the evaluate routine.

Remark 2. Currently the only allowed nonlinear transformation on the LHS
          endogenous variable is the log. It is not difficult to generalise, at
          some point I had all the matlab functions allowed by Dynare,
          but this would complicate the code for not much gain.
2019-04-08 11:01:34 +02:00
Stéphane Adjemian (Charybdis) 567ca19000
Added routine to evaluate the RHS of an equation. 2019-03-19 07:08:55 +01:00