Learn R Programming

cplexAPI (version 1.4.0)

setLogFileNameCPLEX: Set and open a log file

Description

Low level interface function to the IBM ILOG CPLEX function CPXsetlogfilename. Consult the IBM ILOG CPLEX documentation for more detailed information. This funtion has no functionality for IBM ILOG CPLEX < 12.8.0, where CPXsetlogfilename was not included.

Usage

setLogFileNameCPLEX(env, filename = "cpx.log", mode = "w")

Arguments

env

An object of class "'>cplexPtr" as returned by openEnvCPLEX. This is basically a pointer to an IBM ILOG CPLEX environment.

filename

The name of the log file to open.

mode

The mode in which CPLEX should open the file. The specification is the same as that for the C library function fopen. For example, use a quoted character, such as "w" to write or "a" to append. Make sure you open the file for writing; otherwise, CPLEX writes nothing to the log file, and CPLEX can produce an error every time it attempts to write. If filename is NULL, then this argument is ignored and can be NULL, too.

Value

Zero if successful, otherwise nonzero.

Details

Interface to the C function setLogFileName which calls the CPLEX function CPXsetlogfilename.

References

The IBM ILOG CPLEX home page at https://www.ibm.com/support/knowledgecenter/SSSA5P.

See Also

cplexConstants