dyn_ols: bug fix: sign was not taken into account from AST when endogenous to be subtracted from LHS
parent
d11815cba0
commit
7be2f966c3
|
@ -91,7 +91,7 @@ for i = 1:length(terms)
|
||||||
|| (strcmp(node_to_parse.type, 'exogenous') && any(strcmp(ds.name, node_to_parse.name)))
|
|| (strcmp(node_to_parse.type, 'exogenous') && any(strcmp(ds.name, node_to_parse.name)))
|
||||||
% Subtract VariableNode from LHS
|
% Subtract VariableNode from LHS
|
||||||
% NB: treat exogenous that exist in ds as endogenous
|
% NB: treat exogenous that exist in ds as endogenous
|
||||||
lhssub = lhssub + evalNode(ds, node_to_parse, line, dseries());
|
lhssub = lhssub + evalNode(ds, node_to_parse, line, dseries())*node_sign;
|
||||||
else
|
else
|
||||||
parsing_error('unexpected variable type found', line, node_to_parse);
|
parsing_error('unexpected variable type found', line, node_to_parse);
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue