<div>Hello, Andreas</div>
<div>I appreciate your timely and helpful response very much.</div>
<div>I am kind of confused with the situation now because of the following reasons:</div>
<div>The way I need to define one of those integral functions in my problem is like this:</div>
<div>Integral(var1,var2,var3), assume I need these three inputs to do the calculation.</div>
<div>In my ampl .mod file, I used this function like this:</div>
<div><font color="#ff0000">set k;</font></div>
<div><font color="#ff0000">sum{s in k} Integral(x[s],y[s],z[s])<font color="#000000"> + .....; # x[s] is decision variable, y[s] and z[s] are parameters defined in .dat file.</font></font></div>
<div><font color="#ff0000"><font color="#000000">The coded Integral() function will give you the value give those three inputs.</font></font></div>
<div><font color="#ff0000"><font color="#000000">My question is:</font></font></div>
<div><font color="#ff0000"><font color="#000000">What are first and second order direvatives for in AMPL modeling? </font></font></div>
<div><font color="#ff0000"><font color="#000000">What kind of format you code the first and second order direvatives for Bonmin? </font></font></div>
<div><font color="#ff0000"><font color="#000000">How Bonmin can know and use the first and second orfer direvatives coded in AMPL external function?</font></font></div>
<div><font color="#ff0000"><font color="#000000">Again, if there could be a small example to illustrate this idea, that&#39;s will be better, I think.</font></font></div>
<div><font color="#ff0000"><font color="#000000">Very appreciate your time.</font></font></div>
<div><font color="#ff0000"><font color="#000000">Best</font></font></div>
<div><font color="#ff0000"><font color="#000000">Roy</font></font></div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 3/2/07, <b class="gmail_sendername">Andreas Waechter</b> &lt;<a href="mailto:andreasw@watson.ibm.com">andreasw@watson.ibm.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Roy,<br><br>&gt; Could you actually provide one example which uses automatic differentiation<br>&gt; to give the first and second direvatives with ampl external function?
<br><br>I&#39;m not sure, part of the code was not written by me and I&#39;m not sure if I<br>can give it away.<br><br>&gt; Another question coming into my mind is:<br>&gt; Does that mean I don&#39;t need code to calculate the value of the integration
<br>&gt; function, instead, I just need to code to calculate the first and second<br>&gt; direvatives?<br><br>No, we still also need the values.<br><br>However, if your function (including the integral) is such that the first
<br>derivative is some analytic function without the integral, you could just<br>code the first derivatives using that analytic expression, from which you<br>could also easily the second derivative (as the first derivative of that
<br>other function).<br><br>&gt; Again, if you can give me the example you mentioned in your email, I would<br>&gt; appreciate it very much.<br><br>Given what I wrote in the last paragraph, let me know if you still want me
<br>to look for an example with ADOL-C.<br><br>Cheers,<br><br>Andreas<br></blockquote></div><br>