Closed fdevinc closed 2 years ago
Hello,
That particular method is not meant to be used in normal models (you will not find the equivalent Jacoban/Hessian methods). I would advise using the normal methods with a single independent variable vector.
Kind regards, João
Thank you very much @joaoleal! Then I will stick to the usual single independent variable vector!
I managed to define and generate code for functions of the form
ADFun adFun(x, y);
, but this is not desirable ifx
must always be assembled from an array of independent variable vectors. Luckily, in the file _genericmodel.hpp I found the following declaration:I would really like to use this functionality! However, I cannot manage to create an
ADFun
object that satisfies the above interface (it seems that an adequate constructor is missing). Also, I could not find any examples about this matter. How can I enable my models to be used as in the above snippet?