Skip to content
Snippets Groups Projects
Verified Commit 9372796b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Allow MATLAB/Octave vectors in “conditional_forecast_paths” block

parent 991759b2
Branches
Tags
No related merge requests found
Pipeline #11331 passed
/* /*
* Copyright © 2003-2024 Dynare Team * Copyright © 2003-2025 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -881,13 +881,10 @@ ConditionalForecastPathsStatement::writeOutput(ostream& output, ...@@ -881,13 +881,10 @@ ConditionalForecastPathsStatement::writeOutput(ostream& output,
for (const auto& [period_range, value] : elems) for (const auto& [period_range, value] : elems)
{ {
auto [period1, period2] = get<pair<int, int>>(period_range); auto [period1, period2] = get<pair<int, int>>(period_range);
for (int j = period1; j <= period2; j++) output << "constrained_paths_(" << k << "," << period1 << ":" << period2 << ")=";
{
output << "constrained_paths_(" << k << "," << j << ")=";
value->writeOutput(output); value->writeOutput(output);
output << ";" << endl; output << ";" << endl;
} }
}
k++; k++;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment