Verified Commit ec21208e authored by Houtan Bastani's avatar Houtan Bastani
Browse files

pac: specify type of variables in non optimizing part of equation

parent effa4054
Pipeline #895 passed with stage
in 1 minute and 24 seconds
......@@ -3708,6 +3708,21 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
<< modstruct << "pac." << substruct << "non_optimizing_behaviour.vars = [";
for (auto & it : non_optim_vars_params_and_constants)
output << symbol_table.getTypeSpecificID(get<0>(it)) + 1 << " ";
output << "];" << endl
<< modstruct << "pac." << substruct << "non_optimizing_behaviour.type = [";
for (auto & it : non_optim_vars_params_and_constants)
switch (symbol_table.getType(get<0>(it)))
{
case SymbolType::endogenous:
output << "1 ";
break;
case SymbolType::exogenous:
output << "0 ";
break;
default:
cerr << "expecting endogenous or exogenous" << endl;
exit(EXIT_FAILURE);
}
output << "];" << endl
<< modstruct << "pac." << substruct << "non_optimizing_behaviour.lags = [";
for (auto & it : non_optim_vars_params_and_constants)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment