CPXopenCPLEX


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()).

Return Value

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.

Synopsis

  CPXENVptr CPXopenCPLEX (int *status_p);

Arguments

int *status_p

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

Example

  env = CPXopenCPLEX (&status);

See Also

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

Previous Page: CPXobjsa Return to Top Next Page: CPXordwrite