Fixed bug in conditional forecasts (wrong indexing of the controlled variables).
parent
c5749d7762
commit
52f205eb22
|
@ -289,9 +289,9 @@ ConditionalForecastPathsStatement::writeOutput(ostream &output, const string &ba
|
||||||
it != paths.end(); it++)
|
it != paths.end(); it++)
|
||||||
{
|
{
|
||||||
if (it == paths.begin())
|
if (it == paths.begin())
|
||||||
output << "constrained_vars_ = " << it->first << ";" << endl;
|
output << "constrained_vars_ = " << it->first +1 << ";" << endl;
|
||||||
else
|
else
|
||||||
output << "constrained_vars_ = [constrained_vars_; " << it->first << "];" << endl;
|
output << "constrained_vars_ = [constrained_vars_; " << it->first +1 << "];" << endl;
|
||||||
|
|
||||||
const vector<AbstractShocksStatement::DetShockElement> &elems = it->second;
|
const vector<AbstractShocksStatement::DetShockElement> &elems = it->second;
|
||||||
for (int i = 0; i < (int) elems.size(); i++)
|
for (int i = 0; i < (int) elems.size(); i++)
|
||||||
|
|
Loading…
Reference in New Issue