non linear program with PHP scripting language

85 views
Skip to first unread message

Asad Ali

unread,
Oct 22, 2014, 7:55:35 AM10/22/14
to am...@googlegroups.com
Hello everyone! 

I have a non linear program that involves two decision variables and 5 constraints. I was wondering if there is any solver or any software on which i can give model and data files written in PHP script and get the optimization results. I know lp_solve can be used for PHP script but It cannot handle non linearities which is an issue. Please recommend me some PHP solver for non linear model or tell me some way to convert non linear model to a linear model.

Regards,
Asad

victor.z...@gmail.com

unread,
Oct 22, 2014, 10:45:21 AM10/22/14
to am...@googlegroups.com
Hello Asad,

AMPL doesn't have a PHP API, but since your problem is small, it should be easy to translate it into the AMPL language, and invoke the AMPL translator from PHP using, for example, the system function and communicating with it via files. See also https://groups.google.com/d/msg/ampl/RH9VP7qHuqY/vxHucMONdhEJ

HTH,
Victor

--
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 http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Asad Ali

unread,
Oct 22, 2014, 10:49:04 AM10/22/14
to am...@googlegroups.com
Thanks for your help Victor

--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/urK0Z8dqYyE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages