<div dir="ltr">Hello,<div><br></div><div>I&#39;ve started using ADOL-C for about a month, so I&#39;m just about a beginner. </div><div>I need to differentiate a function which requires me to first compute a 3-D interpolation, and then do a 1-D optimization using Brent&#39;s algorithm. I want to know if I can use ADOL-C to differentiate a function like this. </div><div><br></div><div>I&#39;m particularly concerned by the 1-D optimisation that my function performs. It would probably be important to see how the 1-D optimiser is coded to decide if ADOL-C can work on it.  The C code for the 1-D optimizer using Brent&#39;s algorithm can be found here: <a href="http://people.sc.fsu.edu/~jburkardt/c_src/brent/brent.c">http://people.sc.fsu.edu/~jburkardt/c_src/brent/brent.c</a>  ( I use the function &quot;local_min&quot;). </div><div><br></div><div>There was a previous query on performing ADOL-C on linear interpolation (<a href="http://list.coin-or.org/pipermail/adol-c/2012-December/000881.html">http://list.coin-or.org/pipermail/adol-c/2012-December/000881.html</a>). I guess I can adapt the answer given here to perform 3-D linear interpolation.</div><div><br></div><div>I have another question. I previous tried to treat the interpolation and the optimizer part of the function as &quot;constants&quot; (not adoubles ). When I do this, and use the &quot;gradient&quot; driver to find the derivative, I get all zeros as a result ( Despite the &quot;gradient&quot; driver saying that the function is locally analytic). My question is what are the most common reasons that would lead ADOL-C to return zeros while using the &quot;gradient&quot; driver.</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Shantanu,</div><div><br></div><div>PhD Candidate at ESSEC</div></div>