[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] [Fwd: .run file equivalent in GLPK?]
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] [Fwd: .run file equivalent in GLPK?] |
Date: |
Mon, 05 Nov 2012 09:14:04 +0100 |
Hello Reg,
the following wiki pages are covering the same set of themes:
http://en.wikibooks.org/wiki/GLPK/Scripting_plus_MathProg
http://en.wikibooks.org/wiki/GLPK/Gnuplot
http://en.wikibooks.org/wiki/GLPK/Scalable_Vector_Graphics
May be you want to share your experiences here.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Sun, 4 Nov 2012 09:57:25 -0800 (PST)
> Betreff: Re: [Help-glpk] [Fwd: .run file equivalent in GLPK?]
> FWIW
>
> I do a lot of the sort of thing Robbie described.
>
> I have the basic model in a GMPL file w/ the data in a separate file. I
> run a program that reads the raw data from several files to generate the
> GMPL data file. I found that this worked much better than trying to read 2D &
> 3D arrays from .csv files.
>
> It looks approximately like this:
>
> #!/bin/sh
>
> LIST=`/bin/ls data `
>
> for I in ${LIST}
> do
>
> myprog_1 data/${I} >job/${I}
>
> glpsol -m job.mod -d job/${I} -o out/${I}
>
> myprog_2 out/${I} >plot/${I}
>
> done
>
> In a *nix commandline environment (Solaris, BSD, Linux, MacOS X & Cygwin),
> the shell and awk can easily automate many tasks. So no matter what
> you're using, this is a viable solution.
>
> I know a number of people who use Cygwin on Windows in preference to Linux
> because they have other software that is not available on Linux. All the
> others have this available by default.
>
> Reg
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-glpk