[Top][All Lists]

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

Re: [Help-glpk] Generate data section files for model (in GNU MathProg o

From: Robbie Morrison
Subject: Re: [Help-glpk] Generate data section files for model (in GNU MathProg or other languages)
Date: Thu, 10 May 2012 05:04:18 +1200
User-agent: SquirrelMail/1.4.22

Hello Tony

To:           address@hidden
Subject:      [Help-glpk] Generate data section files for model (in GNU
MathProg or other languages)
From:         Tony Khosravi <address@hidden>
Date:         Wed, 9 May 2012 17:13:36 +0200

> Hi,
> I would like to know if it was possible to generate any
> data files in the GNU MathProg format with the GLPK
> lib.
> When I am talking about data file, I mean the data
> section of model data.  The aim would be to be able to
> generate many text files containing only the data
> section so that they can be used later with the solver
> and a file containing only the model section. I didn't
> find any thing like that.
> My thought is now to try to implement a general lib to
> generate sets or parameters in a text file according to
> the documentation gmpl, but I was wondering it this had
> been done before (which might be probable).
> I also had the idea of using the table statement with
> the CSV driver, but apparently, it cannot be used in
> the data section, only in the model section, and I
> don't want to touch the file with the model. The aim is
> to keep the data section separate from the model
> section.
> --
> *Tony Khosravi Dehkourdi*
> MSc. Student - Computer Systems
> *Link?ping University*
> El?ve ing?nieur -- G?nie Informatique, Syst?mes et R?seaux d'Informations
> (GI06)*
> Universit? de Technologie de Compi?gne*
> Tel:+46 7 60 69 51 57

Hello Tony

AFAIK, once your high-level MathProg model has been
translated into a low-level problem object, it is not
possible to detranslate it.

So I guess you are talking about doing this processing
before your MathProg model + data has been irrevocably

You may therefore need to do this work outside of GLPK?
That is my best guess anyway.

These links might be useful while thinking about your

best regards
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : address@hidden
Webmail (preferred)           : address@hidden
[from Webmail client]

reply via email to

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