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.
Methods
__init__
([tee, logfile])Initialize output stream object.
flush
()Needed for python3 compatibility.
write
(message)Write messages to all streams.
Member Documentation