Previous Page: CPXopenCPLEXdevelopFirst PageNext Page: CPXordwrite

CPXopenCPLEXruntime


Description

This routine initializes a CPLEX environment on computers where no CPLEX Base System and Callable Library is licensed for application development; a typical use of this routine is to support Licensed Derivative Works. Either CPXopenCPLEXdevelop() or CPXopenCPLEXruntime() must be the first CPLEX routine called. The routine returns a pointer to the CPLEX environment. This pointer is used as a parameter to every other CPLEX routine (except CPXmsg()). The arguments allow specification of an application serial number, and a string indicating the location of the CPLEX license for the application.

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 will be 0.

Synopsis

CPXENVptr CPXopenCPLEXruntime (int *status_p,
                               int serialnum,
                               char *licenvstring);

Arguments


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

int serialnum
Application serial number.

char *licenvstring
A pointer to a string containing assignments for the license environment variables CPLEXLICENSE, CPLEXLICDIR, and/or CPLEXLICTYPE, separated by semicolons. Note that the settings provided by this argument override any setting determined by the external environment.

Example

env = CPXopenCPLEXruntime (&status, 54321,
    "CPLEXLICENSE=/u/gofast/cplexlic.ptr; CPLEXLICTYPE=DEFAULT");
Previous Page: CPXopenCPLEXdevelopFirst PageNext Page: CPXordwrite