NO FRAMES

CPXopenCPLEX

CPXENVptr CPXPUBLIC CPXopenCPLEX(int * status_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXopenCPLEX initializes a CPLEX environment when accessing a license for CPLEX and works only if the computer is licensed for Callable Library use. The routine CPXopenCPLEX must be the first CPLEX routine called. The routine returns a pointer to a CPLEX environment. This pointer is used as a parameter to every other non-advanced CPLEX routine (except CPXmsg).

Example

 env = CPXopenCPLEX (&status);

See lpex1.c in the CPLEX User's Manual.

Parameters:

status_p

A pointer to an integer, where an error code is placed by this routine.

Returns:

A pointer to the CPLEX environment. If an error occurs (including licensing problems), 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).