GMPL data files can be easily created with any tool that can output text files, cf.
You could use the printf command of GMPL to create data files.
When many data shall be used with the same model, I personally would use a SQL data base, which can be read with the table statement.
-------- Original-Nachricht --------
> Datum: Wed, 9 May 2012 17:13:36 +0200
> Betreff: [Help-glpk] Generate data section files for model (in GNU MathProg or other languages)
> *Tony Khosravi Dehkourdi*
> 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
> 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.
>> *Linköping University*
> MSc. Student - Computer Systems
> Elève ingénieur -- Génie Informatique, Systèmes et Réseaux
> Université de Technologie de Compiègne*
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de