Using AMPL Extended Functions with Global Optimization Solvers

12 views
Skip to first unread message

Pelin Kesrit

unread,
Mar 3, 2026, 12:43:34 PM (8 days ago) Mar 3
to AMPL Modeling Language
Hello,

I am trying to use AMPL extended functions in my model. I have the following lines in my model:

load amplgsl.dll;

function gsl_cdf_beta_P;


 Since the problem is nonlinear, I need to use a global optimizer such as BARON, LINDO Global, LGO, or Couenne. But none seems to be able to call these functions. I tried following the steps listed in these previous posts:


( I tried downloading an older version of the amplgsl.dll and set the ampl_funclibs to the location of amplgsl.dll)

But none seemed to work and I get the following error messages respectively, for the aforementioned solvers:  

BARON does not support operation function call

BARON 25.8.5 (2025.08.05): operation not supported by BARON

BARON 25.8.5 (2025.08.05): maxtime=3600


Reading C:\Users\pelin\AppData\Local\Temp\at18472.nl in NL format

Bad NL format

Errorcode=2029: Specified feature is not yet supported or not compatible with the model type.

exit value 1

<BREAK>


LGO: timelim=3600

function gsl_cdf_beta_P not available

exit value 4


Couenne 0.5.8 -- an Open-Source solver for Mixed Integer Nonlinear Optimization

Mailing list: cou...@list.coin-or.org

Instructions: http://www.coin-or.org/Couenne

couenne: max_cpu_time=3600

exit value 18446744072635810825

<BREAK>

I would really appreciate any help on how to proceed.

Thank you!

 Pelin 

AMPL Google Group

unread,
Mar 4, 2026, 2:56:09 PM (6 days ago) Mar 4
to AMPL Modeling Language
Your question has been moved to our new user forum at discuss.ampl.com, and a response has been posted there. To see the response, use this link:

https://discuss.ampl.com/t/using-ampl-extended-functions-with-global-optimization-solvers/2226/2

To reply, click the red "Reply" button that follows the response. (Do not send an email reply to this message.)


--
Robert Fourer

We're switching to a new, enhanced user forum.
Join it now at discuss.ampl.com.
{#HS:3246901191-141743#}
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ampl/6ae28c0a-36c0-4583-a2ad-3fb3c76a3ceen%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages