help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Only one data file allowed in GLPK


From: glpk xypron
Subject: Re: [Help-glpk] Only one data file allowed in GLPK
Date: Wed, 01 Oct 2008 08:13:17 +0200

Hello Andrew,

> I agree with Xypron that preparing model data is an important issue.
> However including comprehensive features for data processing in glpk
> would take it far away from its main purpose. Using existing tools
> like sed, gawk, cpp, etc. is a much better idea.
> 

Could you, please, at least lift the restriction on function mpl_read_data to 
be called only once. (Single line change, see below.)

Best regards

Xypron


--- glpk/glpk/trunk/glpk-4.31/src/glpmpl04.c    2008/08/28 17:07:42     273
+++ glpk/glpk/branches/glpk-4.31-multiple_data_files/src/glpmpl04.c     
2008/09/27 17:09:13     286
@@ -699,7 +699,7 @@
 --     processing. */
 
 int mpl_read_data(MPL *mpl, char *file)
-{     if (mpl->phase != 1)
+{     if (mpl->phase != 1 && mpl->phase != 2)
          xfault("mpl_read_data: invalid call sequence\n");
       if (file == NULL)
          xfault("mpl_read_data: no input filename specified\n");


-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196




reply via email to

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