ILOG CPLEX .NET Reference Manual

Cplex.Putenv Method 

Sets the ILOG_LICENSE_FILE environment variable used by CPLEX.

public static void Putenv(
   string envstr
);

Parameters

envstr
String of the form ILOG_LICENSE_FILE=..., where ... is the setting of the environment variable ILOG_LICENSE_FILE .

Remarks

This function sets the ILOG_LICENSE_FILE environment variable to specify the path to the file containing the ILOG license key. It must not be used to set any other environment variable. Throws ILOG.Concert.Exception if the environment variable could not be set.

See Also

Cplex Class | ILOG.CPLEX Namespace