[Ipopt] pass arrays to the eval_f function

Arturo Padilla apadilla at mpi-magdeburg.mpg.de
Fri Jan 22 05:44:00 EST 2010


Dear all, 

I'm using IPOPT through C++ and I need to pass some arrays to the objectiv function. I tried to pass the arrays through a constructor and also with an Initialize function, but this is not working (it only works with "int" and with "double", but not with an array). Any idea why this is happening? So far, what is working is to insert a *.cpp file with the arrays in the "eval_f" function, but if a would like to do an online optimization, I can not work like this. 

Greetings, 

Arturo Padilla 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20100122/8f8685fa/attachment.html 


More information about the Ipopt mailing list