Integral function in AMPL

192 views
Skip to first unread message

sonnv188

unread,
Jul 16, 2018, 4:24:01 PM7/16/18
to am...@googlegroups.com
Dear all,
I have just studying about AMPL. I am writing my objective function by AMPL
but there are problems with integral functions. Is it possible to use some
type of canned numerical integration in AMPL?
I have looked online and in the ampl manual and I can't find anything. This
image shows my objective function.
<http://ampl.996311.n3.nabble.com/file/t2888/opfunc.jpg>

Please help me. Many thanks!



--
Sent from: http://ampl.996311.n3.nabble.com/

AMPL Google Group

unread,
Jul 16, 2018, 10:37:59 PM7/16/18
to Ampl Modeling Language
There is not integral function in AMPL. If your integral can't be computed from standard integral functions that are already in the AMPL Extended Function Library (http://ampl.com/resources/extended-function-library/) then it will be necessary to create your own user-defined function; there are instructions and examples under "User-defined functions" at http://ampl.com/REFS/hooking2.pdf#page=19.

--
Dr. Paras Tiwari
am...@googlegroups.com
{#HS:621877149-14580#}
On Mon, Jul 16, 2018 at 8:24 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
Dear all,
I have just studying about AMPL. I am writing my objective function by AMPL
but there are problems with integral functions. Is it possible to use some
type of canned numerical integration in AMPL?
I have looked online and in the ampl manual and I can't find anything. This
image shows my objective function.

Please help me. Many thanks!



--
Sent from: http://ampl.996311.n3.nabble.com/

--
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 post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.



Reply all
Reply to author
Forward
0 new messages