CPXsetlogfile


Description

The routine CPXsetlogfile() modifies the log file to which messages from all four CPLEX-defined channels are written.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs.

Synopsis

  int CPXsetlogfile (CPXENVptr env,
                     CPXFILEptr logfile_p);

Arguments

CPXENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXFILEptr logfile_p

A CPXFILEptr for the log file. This routine sets logfile_p to be the file pointer for the current log file. A NULL pointer may be passed if no log file is desired. NULL is the default value. Before calling this routine, obtain this pointer with a call to CPXfopen().

Example

  status = CPXsetlogfile (env, logfile);


Previous Page: CPXsetintparam Return to Top Next Page: CPXsetlpcallbackfunc