OutputStream

(class from pyomo.solvers.plugins.solvers.GAMS)

class pyomo.solvers.plugins.solvers.GAMS.OutputStream(tee=False, logfile=None)[source]

Bases: object

Output stream object for simultaneously writing to multiple streams.

tee=False:

If set writing to this stream will write to stdout.

logfile=None:

Optionally a logfile can be written.

__init__(tee=False, logfile=None)[source]

Initialize output stream object.

Methods

__init__([tee, logfile])

Initialize output stream object.

flush()

Needed for python3 compatibility.

write(message)

Write messages to all streams.

Member Documentation

flush()[source]

Needed for python3 compatibility.

write(message)[source]

Write messages to all streams.