cplex output is split to a temporary log file and to the standard output. This way a log file is always available.
This is implemented with the command line function tee. Right now this limits to unix systems, but an alternative for Win can be worked out. Unfortunately, the R function sink() does not capture streams started with the system command.
The temporary log file is parsed after the run and reported to the user as a new diagnostics field of the output.
remaining todos:
handle the case of windows
testing: I tested with many examples but not sure if we could store text files in the package for tests
implement similar diagnostics for other optimizers
Parsing cplex log and reporting to the user
cplex
output is split to a temporary log file and to the standard output. This way a log file is always available. This is implemented with the command line functiontee
. Right now this limits to unix systems, but an alternative for Win can be worked out. Unfortunately, the R functionsink()
does not capture streams started with thesystem
command.The temporary log file is parsed after the run and reported to the user as a new
diagnostics
field of the output.remaining todos: