Fixed timing issue in VAR_EXPECTATION expansion.

issue#70
Stéphane Adjemian(Charybdis) 2018-08-06 21:36:52 +02:00
parent 32da131a77
commit b20da7c43f
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, const
/* Create auxiliary parameters and the expression to be substituted to
the var_expectations statement */
auto subst_expr = dynamic_model.Zero;
for (int lag = 1; lag <= max_lag; lag++)
for (int lag = 0; lag < max_lag; lag++)
for (auto variable : lhs)
{
string param_name = "var_expectation_model_" + model_name + '_' + symbol_table.getName(variable) + '_' + to_string(lag);