help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] RE: Feature request - option to flush output


From: Sylvain Fournier
Subject: [Help-glpk] RE: Feature request - option to flush output
Date: Mon, 14 Sep 2009 14:02:32 -0300

Extending the subject, is it possible with GLPK to redirect this output to a file instead of stdout?
 
Date: Mon, 14 Sep 2009 19:47:20 +0400
From: "Hart, William E" <address@hidden>
Subject: RE: [Help-glpk] Feature request - option to flush output
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

Excellent!  I see that I _do_ need to update glpk.

--Bill


> -----Original Message-----
> From: Andrew Makhorin [mailto:address@hidden]
> Sent: Monday, September 14, 2009 9:16 AM
> To: Hart, William E
> Cc: address@hidden
> Subject: Re: [Help-glpk] Feature request - option to flush output
>
> > By default, IO streams are not regularly flushed; they are
> buffered in
> > the computer until 'enough' IO has been done (or until the
> stream is
> > closed).
>
> > I'm piping glpsol through some Python code and this buffering is
> > creating a noticable delay in my processing.  What I'd like is an
> > option that enables explicit flushing of glpsol's output.  For
> > example, after each status line is printed, you might execute:
>
> >   flush(stdout)
>
> > (or do "cout << flush" in C++).
>
> Exactly this feature was added in glpk 4.35:
>
>    The statement "if (c = '\n') fflush(stdout)" was added to the
>    internal routine xputc to provide "real-time" terminal output.
>
> Probably you are using an older version of the package. If
> so, download the most recent version, which is 4.39.
>
> GLPK distribution can be ftp'ed from
> ftp://ftp.gnu.org/gnu/glpk/ or from some mirror ftp sites;
> see http://www.gnu.org/order/ftp.html .
>
>
>
>







------------------------------

_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk

reply via email to

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