[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] mathprog component information

From: Andrew Makhorin
Subject: Re: [Help-glpk] mathprog component information
Date: Sat, 22 Apr 2006 12:14:44 +0400

> In the AMPL language, the "show" command can be used to examine sets,
> variables, parameters, etc.

GNU MathProg (a subset of AMPL implemented in glpk) currently does not
support interactive mode. It has two statements: display and printf
which can be used within the model description to output contents of
model objects.

> Does glpk have an api that would allow the
> same kind of information to be obtained once a mathprog model is fed
> to glpk?

The glpk model translator has its own api including a number of
routines (mpl_initialize, mpl_read_model, mpl_read_data, etc.) which
can be used separately in application program. These routines are not
documented, however, they are provided with detailed comments which
can be found in file glpmpl4.c below the fragment titled 'SOLVER
INTERFACE'. (Afaik, the glpk model translator is used in Symphony,
a mip package which is part of Coin-Or project, just to read ampl
models; see ).

If you need to get access to the translator database, this is also
possible (see file glpmpl.h). However, all essential information can
be obtained by api routines.

Andrew Makhorin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]