Substitute model-local variables in equations marked [static]
(cherry picked from commit 8d4cab6fe3
)
5.x
parent
ced586febf
commit
cac24dad7e
|
@ -5677,6 +5677,9 @@ DynamicModel::substituteModelLocalVariables()
|
|||
for (auto &equation : equations)
|
||||
equation = dynamic_cast<BinaryOpNode *>(equation->substituteModelLocalVariables());
|
||||
|
||||
for (auto &equation : static_only_equations)
|
||||
equation = dynamic_cast<BinaryOpNode *>(equation->substituteModelLocalVariables());
|
||||
|
||||
/* We can’t clear local_variables_table at this point, because in case of
|
||||
ramsey_policy, the original model is saved via DynamicModel::operator=()
|
||||
before computing the FOC. But since DataTree::operator=() clones all
|
||||
|
|
Loading…
Reference in New Issue