CPXXopenCPLEX and CPXopenCPLEX
The routine CPXXopenCPLEX/CPXopenCPLEX initializes a CPLEX environment.
CPXENVptr CPXXopenCPLEX( int * status_p )
CPXENVptr CPXopenCPLEX( int * status_p )
Description
The routine CPXXopenCPLEX/CPXopenCPLEX initializes a CPLEX environment.
The routine CPXXopenCPLEX/CPXopenCPLEX
must be the first CPLEX routine called. The routine returns a pointer to a
CPLEX environment. This pointer is used as an argument to every other
nonadvanced CPLEX routine (except CPXXmsgstr/CPXmsgstr).
Arguments
- status_p
- A pointer to an integer, where an error code is placed by this routine.
Return
A pointer to the CPLEX environment. If an error occurs, the value NULL is returned. The reason for the error is returned in the variable*status_p. If the routine is successful, then *status_p is 0 (zero).
Example
env = CPXopenCPLEX (&status);
See lpex1.c in the CPLEX User's Manual.