[Ipopt] How to change adouble variable to double and round function

Zhaori Bi bizr2915 at gmail.com
Sun Sep 22 11:57:42 EDT 2013


Hi guys,

I am using ipopt c++ interface now, I found the variable is defined as
adouble class. which defind
1.234567 as 1.234567(a). Do you have any idea how to convert this to a
double number?

And Do you guys know how to round the adouble number since round() function
only work with double/float number.

Thank you for the rely!

zhaori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20130922/53a7c87d/attachment.html>


More information about the Ipopt mailing list