help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] adding --csv output


From: Kevin Hunter
Subject: [Help-glpk] adding --csv output
Date: Thu, 13 Jan 2011 02:24:25 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

Hullo Andrew, List,

I had need of an unambiguous version (for machine parsing) of the output provided by the glp_print_* functions. Consequently, I've created an equivalent set of glp_csv_* functions. With this patch, one can use a --csv <file> flag:

$ glpsol --lp test.lp --csv solution.csv

This patch adds three glp_csv_{sol,ipt,mip} functions and a couple of miscellaneous helper functions to the glpk-4.45 tarball.

I'm rather new to GLPK's code base, but I think I've my ducks in a row. Specifically, Xypron, if you have some time, I would much appreciate a code review.

Thanks, and I hope this proves useful to others.

Cheers,

Kevin

Attachment: glpk_csv.patch.gz
Description: GNU Zip compressed data


reply via email to

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