Since the GLPK implements a subset of AMPL, is it possible to follow the AMPL book using GLPK, or does one have to work with the interpreters from www.ampl.com?

asked 21 Apr '10, 08:28

adamo's gravatar image

adamo
638513
accept rate: 0%

I am also trying to use GLPK but their parser gives me a lot of errors on my old AMPL files. especially on data files.

(21 Apr '10, 09:18) Mark ♦

The Gnu Math Prog Language (GMPL) pdf that comes with GLPK in the documentation is a really good tutorial. I suggest using this as a reference for any implementations with GLPK. You can find the GMPL.pdf in the "doc" directory of your GLPK folder.

link

answered 21 Apr '10, 12:21

larrydag%201's gravatar image

larrydag 1 ♦
3.2k51326
accept rate: 9%

Last time I checked there was no official AMPL tool to connect to GLPK. But there is a page that explains how to connect AMPL to any solver.

The following is what I recently recieved from GLPK mailing list by

I am wondering if you guys know any way to call glpk from ampl can I use option solver glpsol from ample?

See: http://www.ampl.com/hooking.html . AFAIK, no one has tried yet to call glpk from ampl. (Please note that the AMPL system is non-free, proprietary software.)

link

answered 21 Apr '10, 09:25

Mark's gravatar image

Mark ♦
3.6k22350
accept rate: 9%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×28

Asked: 21 Apr '10, 08:28

Seen: 3,137 times

Last updated: 21 Apr '10, 12:21

OR-Exchange! Your site for questions, answers, and announcements about operations research.