http://docs.python.org/library/sys.html
and its documentation on
"""
sys.stdin
sys.stdout
sys.stderr
File objects corresponding to the interpreter’s standard input, output
and error streams. stdin is used for all interpreter input except for
scripts but including calls to input() and raw_input(). stdout is used
for the output of print and expression statements and for the prompts
of input() and raw_input(). The interpreter’s own prompts and (almost
all of) its error messages go to stderr. stdout and stderr needn’t be
built-in file objects: any object is acceptable as long as it has a
write() method that takes a string argument. (Changing these objects
doesn’t affect the standard I/O streams of processes executed by
os.popen(), os.system() or the exec*() family of functions in the os
module.)
"""
From memory I don't think redirecting sys.stdout works, but you can try.
Otherwise just capture the output from the screen to a file, or use a
solver that you can set the logfile (COIN_CMD, and GUROBI i think)
Stu
> --
> You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
> To post to this group, send email to pulp-or...@googlegroups.com.
> To unsubscribe from this group, send email to pulp-or-discu...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pulp-or-discuss?hl=en.
>
>
--
Stuart Mitchell
PhD Engineering Science
Freelance Programmer and Optimisation Expert
www.stuartmitchell.com