Fixed bug in conditional forecasts (wrong indexing of the controlled variables).
parent
e12748329b
commit
8dc1b9037d
|
@ -289,9 +289,9 @@ ConditionalForecastPathsStatement::writeOutput(ostream &output, const string &ba
|
|||
it != paths.end(); it++)
|
||||
{
|
||||
if (it == paths.begin())
|
||||
output << "constrained_vars_ = " << it->first << ";" << endl;
|
||||
output << "constrained_vars_ = " << it->first +1 << ";" << endl;
|
||||
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;
|
||||
for (int i = 0; i < (int) elems.size(); i++)
|
||||
|
|
Loading…
Reference in New Issue