pac: specify type of variables in non optimizing part of equation
parent
effa40543e
commit
ec21208ed7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue