Hello,
I want to use GLPK solver-glpsol within AMPL. Do you know how should I call glpsol from AMPL ?
I tried using glpsol -m ampl.mod but that failed due to the syntax error.
Thank you.
There are several reasons why you might have a syntax error when running an AMPL model within GLPK.
(1) The language in GLPK (called MathProg or GMPL) is a subset of AMPL, and lacks useful AMPL features such as node-arc modeling and command scripts (and a lot more). See http://ampl.com/BOOK/CHAPTERS/18-network.pdf and http://ampl.com/BOOK/CHAPTERS/16-script.pdf
(2) GMPL does differ in some details from AMPL even for the same type of statement (see, e.g., https://lists.gnu.org/archive/html/help-glpk/2005-05/msg00014.html)
An alternative is for you try to modify your model to fit within the GMPL. If you get stuck, you might wish to communicate with the GLPK help group. See https://lists.gnu.org/mailman/listinfo/help-glpk
From: am...@googlegroups.com [mailto:am...@googlegroups.com]
On Behalf Of Shailesh
Sent: Wednesday, January 04, 2017 6:48 PM
To: AMPL Modeling Language
Subject: [AMPL 13300] How to Call GLPK from AMPL
Hello,
--
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.