12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

API or Cplex in the .NET API) to initialize <strong>ILOG</strong> <strong>CPLEX</strong> for use with Concert Technology.Until either CPXopen<strong>CPLEX</strong> is called or the IloCplex object exists, few <strong>ILOG</strong> <strong>CPLEX</strong>routines or methods operate. In addition to allocating the environment, CPXopen<strong>CPLEX</strong>performs license checks, as do the constructors for Concert Technology. For developmentlicenses, no additional licensing steps are required. For runtime licenses, your applicationfirst needs to provide some additional licensing information before the call toCPXopen<strong>CPLEX</strong> or the use of a constructor.◆For RTNODE, RTSTOKEN and TOKEN keys, this requires calling the CPXputenv routinefrom the Callable Library and C++ API of Concert Technology, or theIloCplex.putenv static method from the Java API, or Cplex.PutEnv from the .NETAPI, to specify the location of the key through the <strong>ILOG</strong>_LICENSE_FILE environmentvariable.◆ For memory-based RUNTIME keys, this requires calling the CPXRegisterLicenseroutine for Callable Library and C++ users, or the static methodIloCplex.registerLicense for Java users, or the static methodCplex.RegisterLicense for .NET users, to pass the RUNTIME key to ILM.Documentation of the routines CPXputenv and CPXRegisterLicense is in the <strong>ILOG</strong><strong>CPLEX</strong> Callable Library Reference <strong>Manual</strong>; documentation of IloCplex.putenv andIloCplex.registerLicense is in the <strong>ILOG</strong> <strong>CPLEX</strong> Java API Reference <strong>Manual</strong>;documentation of Cplex.PutEnv and Cplex.RegisterLicense is in the <strong>ILOG</strong> <strong>CPLEX</strong>.NET API Reference <strong>Manual</strong>.ExamplesHere are some code samples that illustrate the use of those runtime license routines andmethods.◆ CPXputenv Routine for C and C++ Users on page 157◆ The putenv Method for Java Users on page 158◆ The Putenv Method for .NET Users on page 159◆ CPXRegisterLicense Routine for C and C++ Users on page 159◆ The registerLicense Method for Java Users on page 160◆ The RegisterLicense Method for .NET Users on page 160CPXputenv Routine for C and C++ UsersThis example illustrates the routine CPXputenv to open the <strong>CPLEX</strong> environment.<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 157

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!