help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Can I combine "glp_mpl_read_model(, , 1)" with programma


From: Michael Hennebry
Subject: Re: [Help-glpk] Can I combine "glp_mpl_read_model(, , 1)" with programmatically supplied data and also programmatically access results?
Date: Tue, 7 Feb 2012 11:00:03 -0600 (CST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Tue, 7 Feb 2012, Philipp Bachmann wrote:

I have a MathProg model on the one hand and want to supply its input
not using glp_mpl_read_data(), but programmatically on the other hand.
Also I want to fetch the results after calling the solver not via a
file, but programmatically.

From Andrew's response,
to do what you want would require using an intermediate file.
The stumper might be reading the results.
You would need to know how GLPK generates variable names from data.
That is why I've always used the API.

How can I do this, which is the correct order of API routines to call?
Skimming through the examples I did not find similar code, but I may
have overlooked something, of course.

--
Michael   address@hidden
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword."  --  Lily



reply via email to

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