help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Import data from Matlab variables to GLPK/GMPL


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] Import data from Matlab variables to GLPK/GMPL
Date: Fri, 27 Dec 2013 08:34:38 +0100 (CET)

Hello Nazmul,

Gusek is a text editor, which calls the 32bit glpsol executable. 

Glpsol accepts muliple data files which can be passed with the '-d' command 
line parameter. You could write the Gmpl files in Gusek or any other editor and 
invoke glpsol from the console (cmd.exe).

Alternatives to pass data from Matlab are CSV files or a SQL data base. Both 
can be accessed via the table statement in glpsol.

Cf.
http://www.mathworks.de/de/help/database/ug/database.html
http://www.mathworks.de/de/help/matlab/ref/csvwrite.html

Best regards

Heinrich Schuchardt

http://www.xypron.de


On 27.12.13 at 03:49, Nazmul Islam wrote:

> Hello,
> 
> 
> 
> I want to write my GLPK code through the Guesk editor and I am very new to
> 
> the GNU Math Programming Language.
> 
> 
> 
> I want to import some data from Matlab to my GLPK code. I want to run the
> 
> code with these imported data. The data is currently in some variables of
> 
> Matlab and I can store them in some .mat files. Do I need to save all these
> 
> Matlab variables in a single .dat file (or .txt file?) and then import to
> 
> GNU Math Prog language?
> 
> 
> 
> Is there any example that I can follow?
> 
> 
> 
> Thanks,
> 
> 
> 
> Nazmul
> 
> _______________________________________________
> 
> Help-glpk mailing list
> 
> address@hidden
> 
> https://lists.gnu.org/mailman/listinfo/help-glpk



reply via email to

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