<div dir="ltr"><div>Hi,</div>
<div> </div>
<div> I have the Ipopt.lib(generated on Cygwin using Intel F90 compiler as I am using MUMPS) and then I have written a C++ Dll wrapper in Visual Studio 2005 - which basically generates a dll for interfacing with C#. I have a problem which has 5 variables and 6 constraints.</div>
<div> </div>
<div> Well, now when the execution comes to " eval_grad_f " <<em>bool eval_grad_f(int n, <font color="#cc33cc">const Number* x</font>, bool new_x, double* grad_f)</em>> - The value of n is 5 as expected. But, if I try to see the value of x[2] in my debugger watch window I see the following < <font color="#000000"> <font color="#ff9900">x[2] error: index '2' out of bound for pointer/array 'x'</font> </font> >. And even if I try to copy the values to another array - I get some junk values in the copied array. Any idea what might be going wrong? </div>
<div> </div>
<div> </div>
<div> And another thing - while I build my Dll I get the following linker warnings <br> warning LNK4248: unresolved typeref token (01000017) for 'Ipopt.IteratesVector'; image may not run<br>
warning LNK4248: unresolved typeref token (01000018) for 'Ipopt.IpoptData'; image may not run<br> warning LNK4248: unresolved typeref token (01000019) for 'Ipopt.IpoptCalculatedQuantities'; image may not run</div>
<div> </div>
<div>Regards,</div>
<div>Nandini</div></div>