NO FRAMES

CPXopenCPLEX

public CPXENVptr CPXopenCPLEX(int * status_p)
Definition file: 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 an argument to every other nonadvanced CPLEX routine (except CPXmsg).

Example

 env = CPXopenCPLEX (&status);

See lpex1.c in the ILOG 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).