<div>Hi, Andreas</div>
<div>The followings are what I tried with IPOPT</div>
<div><font color="#ff0000">ampl: var x;<br>ampl: function Integral1(Reals,Reals,Reals);<br>ampl: minimize Z:Integral1(x,0,1)+x*x+x+1;<br>ampl: subject to cons:x<=4;<br>ampl: option solver ipopt;<br>ampl: solve;<br>Ipopt
3.2.2: <br>Cannot load library /home/chen11q/ampl_student_linux/solvers/funclink/amplfunc.dll:<br>/home/chen11q/ampl_student_linux/solvers/funclink/amplfunc.dll: cannot open shared object file: No such file or directory<br>
function Integral1 not available<br>user-defined function not available<br>exit code 255<br><BREAK></font></div>
<div><font color="#ff0000"><font color="#000000">Thanks a lot</font></font></div>
<div><font color="#ff0000"><font color="#000000"></font><br></font><br><br> </div>
<div><span class="gmail_quote">On 3/2/07, <b class="gmail_sendername">Roy Chen</b> <<a href="mailto:ytboy0208@gmail.com">ytboy0208@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi, Andreas</div>
<div> </div>
<div>What I am sure is my code could just calculate the value of the integration function and it doesn't provide the first and second direvatives. Does this explain why Bonmin couldn't work with my external function? But why Bonmin couldn'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> </div>
<div>Thanks</div><span class="sg">
<div> </div>
<div>Roy<br> </div></span>
<div><span class="q"><span class="gmail_quote">On 3/2/07, <b class="gmail_sendername">Andreas Waechter</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:andreasw@watson.ibm.com" target="_blank">
andreasw@watson.ibm.com</a>> wrote:</span> </span>
<div><span class="e" id="q_11114f888fa26248_4">
<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>> I don't think my bonmin executable works with AMPL's user defined external<br>> function properly now, because it seems the external function works well<br>> when I test it using some fixed value as input variables in AMPL, however,
<br>> when I tried to take it as a function and build a model in ampl using bonmin<br>> to solve it, it doesn'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'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. 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>> By the way, could you tell me how to use my external function from AMPL<br>> interpreter?
<br><br>I meant the program that comes up when you type 'ampl', so I assume that<br>you already have tested it and it seems to be working. But as for as I<br>know that only asks for the function value from the external function. I
<br>don't know how you could test that also first and second derivatives are<br>provided.<br><br>Regards,<br><br>Andreas<br></blockquote></span></div></div><br></blockquote></div><br>