Changed non_optimizing_behaviour.type field to non_optimizing_behaviour.isendo.

The elements are logicals true/false (true iff corresponding variable is an endogenous variable).
issue#70
Stéphane Adjemian (Charybdis) 2019-02-27 15:35:14 +01:00
parent ec21208ed7
commit 2312ce13dc
Signed by untrusted user who does not match committer: stepan
GPG Key ID: A6D44CB9C64CE77B
1 changed files with 3 additions and 3 deletions

View File

@ -3709,15 +3709,15 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
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 = [";
<< modstruct << "pac." << substruct << "non_optimizing_behaviour.isendo = [";
for (auto & it : non_optim_vars_params_and_constants)
switch (symbol_table.getType(get<0>(it)))
{
case SymbolType::endogenous:
output << "1 ";
output << "true ";
break;
case SymbolType::exogenous:
output << "0 ";
output << "false ";
break;
default:
cerr << "expecting endogenous or exogenous" << endl;