setLogFileNameCPLEX: Set and open a log file

Description Usage Arguments Details Value Author(s) References See Also

View source: R/cplexAPI.R

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

1
  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.

Details

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

Value

Zero if successful, otherwise nonzero.

Author(s)

Mayo Roettger <mayo.roettger@hhu.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

References

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

See Also

cplexConstants


cplexAPI documentation built on Oct. 23, 2020, 5:45 p.m.