CPXgetchannels


Description

The routine CPXgetchannels() obtains pointers to the four default channels created when CPXopenCPLEX() is called. To manipulate the messages for any of these channels, this routine must be called.

Return Value

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

Synopsis

  int CPXgetchannels (CPXCENVptr env,
                      CPXCHANNELptr *cpxresults_p,
                      CPXCHANNELptr *cpxwarning_p,
                      CPXCHANNELptr *cpxerror_p,
                      CPXCHANNELptr *cpxlog_p);

Arguments

CPXCENVptr env

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

CPXCHANNELptr *cpxresults_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxresults. May be NULL.

CPXCHANNELptr *cpxwarning_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxwarning. May be NULL.

CPXCHANNELptr *cpxerror_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxerror. May be NULL.

CPXCHANNELptr *cpxlog_p

A pointer to a variable of type CPXCHANNELptr to hold the address of the channel corresponding to cpxlog. May be NULL.

Example

  status = CPXgetchannels (env, &cpxresults, &cpxwarning,
                           &cpxerror, &cpxlog);

See Also

Example lpex5.c in the CPLEX User's Manual.

Previous Page: CPXgetcallbackinfo Return to Top Next Page: CPXgetclqcnt