[Top][All Lists]

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

Re: [Help-glpk] xBASE table support added to MathProg

From: Ted Poe
Subject: Re: [Help-glpk] xBASE table support added to MathProg
Date: Mon, 25 Feb 2008 17:16:16 -0800 (PST)


I followed these instructions and successfully compiled and tested
glpsol under WinXP using dev-cpp.  Thank you and xypron, too, for
extending MathProg and adding this new feature.  I look forward to
using it.


--- Andrew Makhorin <address@hidden> wrote:

> I have added xBASE table support to the GNU MathProg language.
> To make it working please replace file src/glpmpl05.c in glpk 4.26
> by a new version (see the attachment) and then rebuild the package as
> usual.
> To read/write .dbf files in MathProg models the first argument passed
> to the table driver should be specified as "xBASE" and the second
> argument should contain corresponding file name. For the output table
> there should be the third argument specifying the table format in the
> form "FF...F", where F is either C(n), which specifies a character
> field of length n, or N(n[,p]), which specifies a numeric field of
> length n and precision p (by default p is 0). Below here is a simple
> example which illustrates creating and reading a .dbf file.
> table tab1{i in 1..10} OUT "xBASE" "foo.dbf" "N(5)N(10,4)C(1)C(10)":
>       2*i+1 ~ B, Uniform(-20,+20) ~ A, "?" ~ FOO, "[ " & i & " ]" ~
> C;
> set S, dimen 4;
> table tab2 IN "xBASE" "foo.dbf" : S <- [ B, C, RECNO, A ];
> display S;
> end;
> Andrew Makhorin> _______________________________________________
> Help-glpk mailing list
> address@hidden

reply via email to

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