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.

The registerLicense Method for Java UsersHere is an example for Java users applying IloCplex.registerLicense:static String ilm_<strong>CPLEX</strong>_license="LICENSE <strong>ILOG</strong> Test\n RUNTIME <strong>CPLEX</strong> 9.200 021-Jul-2005 R81GM34ECZTS N ,options: m ";static int ilm_<strong>CPLEX</strong>_license_signature=2756133;public static void main(String[] args) {}try {IloCplex.registerLicense(ilm_<strong>CPLEX</strong>_license, ilm_<strong>CPLEX</strong>_license_signature);IloCplex cplex = new IloCplex();}catch (IloException e) {System.err.println("Exception caught for runtime license:" + e);}The RegisterLicense Method for .NET UsersHere is an example for .NET users applying Cplex.RegisterLicense:internal static string ilm_<strong>CPLEX</strong>_license="LICENSE <strong>ILOG</strong> User\n RUNTIME <strong>CPLEX</strong>9.200 05-Aug-2005 62RAR21A8NC5 N any , options: m ";internal static int ilm_<strong>CPLEX</strong>_license_signature=863909;public static void Main(string[] args) {try {Cplex.RegisterLicense(ilm_<strong>CPLEX</strong>_license, ilm_<strong>CPLEX</strong>_license_signature);Cplex cplex = new Cplex();}catch (<strong>ILOG</strong>.Concert.Exception e) {System.Console.WriteLine("Expected Concert exception caught: " + e);}}SummaryILM runtime license keys come in two forms. Users of file-based RTNODE, RTSTOKEN andTOKEN keys should use the routine CPXputenv or the method IloCplex.putenv or themethod Cplex.PutEnv to identify the location of the license file. Users of memory-basedRUNTIME keys should use the routine CPXRegisterLicense or the methodIloCplex.registerLicense or the method Cplex.RegisterLicense to pass the keyto the <strong>ILOG</strong> License Manager embedded inside the <strong>CPLEX</strong> Component Libraries. Refer tothe <strong>ILOG</strong> License Manager online documentation for additional information aboutactivating and maintaining ILM license keys.160 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

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

Saved successfully!

Ooh no, something went wrong!