<div>Hi, Andreas</div>
<div>&nbsp;</div>
<div>What I am sure is my code could just calculate the value of the integration function and it doesn&#39;t provide the first and second direvatives. Does this explain why Bonmin couldn&#39;t work with my external function? But why Bonmin couldn&#39;t load 
amplfunc.dll file? Does it have something to do with the first and second direvative?</div>
<div>I will try IPOPT soon and give you the result soon.</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>Roy<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>Please keep replying to the mailing list, since other users might also be<br>interested to get the follow up or might be able to help.
<br><br>&gt; I don&#39;t think my bonmin executable works with AMPL&#39;s user defined external<br>&gt; function properly now, because it seems the external function works well<br>&gt; when I test it using some fixed value as input variables in AMPL, however,
<br>&gt; when I tried to take it as a function and build a model in ampl using bonmin<br>&gt; to solve it, it doesn&#39;t work. I think this is very strange.<br><br>Please verify that the external function is coded so that it can provide
<br>both first and second derivatives besides the function value itself,<br>otherwise it won&#39;t work.<br><br>If you found out that your code also computes the derivatives, please<br>submit a ticket at the Bonmin Trac page.&nbsp;&nbsp;Include the information
<br>necessary to reproduce the problem, possibly including your code for the<br>external function (or a pointer where to get it).<br><br>&gt; By the way, could you tell me how to use my external function from AMPL<br>&gt; interpreter?
<br><br>I meant the program that comes up when you type &#39;ampl&#39;, so I assume that<br>you already have tested it and it seems to be working.&nbsp;&nbsp;But as for as I<br>know that only asks for the function value from the external function.&nbsp;&nbsp;I
<br>don&#39;t know how you could test that also first and second derivatives are<br>provided.<br><br>Regards,<br><br>Andreas<br></blockquote></div><br>