This routine frees all of the data structures associated with CPLEX and releases the license. It should be the last CPLEX routine called in any Callable Library application.
The routine returns a zero on success, and a nonzero if an error occurs.
int CPXcloseCPLEX (CPXENVptr *env_p);
A pointer to a variable holding the pointer to the CPLEX environment as returned by