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 Putenv Method for .NET UsersHere is an example using Concert Technology for .NET users:Cplex.Putenv("<strong>ILOG</strong>_LICENSE_FILE=../../../certify/access.e.ilm");try {cplex = new Cplex();}catch (<strong>ILOG</strong>.Concert.Exception e) {System.Console.WriteLine("Concert exception caught: " + e);}CPXRegisterLicense Routine for C and C++ UsersThe following is an example showing how to use the routine CPXRegisterLicense.static char *ilm_license=\"LICENSE <strong>ILOG</strong> Incline\n\RUNTIME <strong>CPLEX</strong> 9.200 21-Jul-2005 R81GM34ECZTS N , options: m ";static int ilm_license_signature=2756133;CPXENVptrintenv = NULL;status;/* Initialize the <strong>CPLEX</strong> environment */status = CPXRegisterLicense (ilm_license, ilm_license_signature);if ( status != 0) {fprintf (stderr, "Could not register <strong>CPLEX</strong> license, status %d.\n",status);goto TERMINATE;}env = CPXopen<strong>CPLEX</strong> (&status);if ( env == NULL ) {char errmsg[1024];fprintf (stderr, "Could not open <strong>CPLEX</strong> environment.\n");CPXgeterrorstring (env, status, errmsg);fprintf (stderr, "%s", errmsg);goto TERMINATE;}<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 159

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

Saved successfully!

Ooh no, something went wrong!