General Utilities

CPLEX general utilities are available for initializing and closing the CPLEX environment. Portability routines are needed for Windows platforms. They may also be used on UNIX platforms.

Note: Names of classes, methods, and symbolic constants in the C#.NET API correspond very closely to those in the Java API with these systematic exceptions:

Purpose

Java API

C++ API

C API

Initializes CPLEX environment

Creation of an IloCplex object

Creation of an IloCplex object

CPXopenCPLEX

Closes CPLEX environment

IloCplex.end

IloEnv::end

CPXcloseCPLEX

Accesses the version of the CPLEX Callable Library

IloCplex.getVersion

IloCplex::getVersion

CPXversion

Pass memory-based information to the ILOG license manager.

IloCplex.registerLicense

Use the C routine CPXRegisterLicense

CPXRegisterLicense

Sets environment variables to be used by CPLEX.

IloCplex.putenv

CPXputenv

CPXputenv

Opens a file used by CPLEX functions

----

CPXfopen

CPXfopen

Closes a file used by CPLEX functions

----

CPXfclose

CPXfclose

Writes to a file used by CPLEX

----

CPXfputs

CPXfputs

Frees memory allocated by a CPLEX function

----

CPXfree

CPXfree

Allocates memory in the heap used by CPLEX

----

CPXmalloc

CPXmalloc

Reallocates memory in the heap used by CPLEX

----

CPXrealloc

CPXrealloc

Determines the length of a string

----

CPXstrlen

CPXstrlen

Copies a string

----

CPXstrcpy

CPXstrcpy

Sends a string to a CPLEX message channel

----

CPXmsgstr

CPXmsgstr

Copies data

----

CPXmemcpy

CPXmemcpy