> 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 http://en.wikipedia.org/wiki/COIN-OR_SYMPHONY ). 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 _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
