Greetings<br clear="all"><div><br></div><div>I'm using the C++ interface and I'm trying to set the "max_iter" option, but I get an exception:</div><div>"...Microsoft C++ exception: std::bad_alloc at memory location..."</div>
<div><br></div><div>Here is the surrounding code, the exception is thrown at the second line:</div><div><br></div><div><div><font face="courier new, monospace">SmartPtr<IpoptApplication> app = IpoptApplicationFactory();</font></div>
<div><font face="courier new, monospace">app->Options()->SetIntegerValue("max_iter", 500);</font></div><div><font face="courier new, monospace">ApplicationReturnStatus status = app->Initialize();</font></div>
</div><div><br></div><div><br></div><div>Thanks</div><div>Nuno</div>