Description
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 CPLEX routine (except CPXmsg()).
CPXopenCPLEX()
CPXmsg())
The 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.
*status_p
CPXENVptr CPXopenCPLEX (int *status_p);
A pointer to an integer, where an error code is placed by this routine.
env = CPXopenCPLEX (&status);
lpex1.c