Does anybody in this group know this issue?
Thank you.
Weizhong Zhang
----------------------------------------
> From: grea...@hotmail.com
> To: am...@googlegroups.com
> Subject: How to combine user-defined functions with AMPL?
> Date: Mon, 17 Mar 2008 17:07:13 -0400
>
>
> Hi,
> How to make AMPL work with user-defined functions?
> I have searched the web, and found the related answers by Robert Four at
> http://groups.google.com/group/ampl/browse_thread/thread/df03ac7c8d33fa23
>
> Then I found the following information is related with my problem.
> http://www.sor.princeton.edu/~rvdb/ampl/nlmodels/
>
> "Some models require nonlinear functions that are not included with ampl . To run these models you need to download funcadd.c, compile it into a dll called amplfunc.dll, and set the shell environment variable AMPLFUNC to point to the directory containing this dll. Here's a sample makefile for building amplfunc.dll on an SGI machine: makefile.irix."
>
> The more information link is not working. "http://www.ampl.com/cm/cs/what/ampl/NEW/libload.html."
>
>
> Does anybody have solved this kind of problem before?
>
> How to compile "myfunction.c" to make it hooked with AMPL to solve the problem? Where can I found any related example or information?
> Thank you.
>
> Weizhong Zhang
> _________________________________________________________________
> MSN圣诞礼物火热登场,免费发放中,快来领取吧!
> http://im.live.cn/emoticons/?ID=18
_________________________________________________________________
新年换新颜,快来妆扮自己的MSN给心仪的TA一个惊喜!
http://im.live.cn/emoticons/?ID=18
_________________________________________________________________
用手机MSN聊天写邮件看空间,无限沟通,分享精彩!
http://mobile.msn.com.cn/
It appears that AMPL is calling your user-defined function, but an error is
occurring during the execution of the function. For example, a division by
zero might be occurring. The warning messages that you observe are coming from
the solver, though. See if you can add some code to your function that catches
errors and displays some more meaningful error messages. If you're not sure
what the errors could be, you could also add some temporary debugging code to
your function to display some information each time it is called.
Bob Fourer
4...@ampl.com