ILOG CPLEX .NET Reference Manual

Cplex.End Method ()

Releases the Cplex license held by the invoking object, and all the memory allocated by it.

public virtual void End();

Remarks

When you no longer use an instance of Cplex and any Concert model created with it, you should call the method end to release the license. After a call of the method end, the invoking Cplex object and all objects that have been created with it (such as variables and constraints) may no longer be used. Attempting to use them subsequently will cause the exception Cplex.CplexEndedException to be thrown.

See Also

Cplex Class | ILOG.CPLEX Namespace | Cplex.End Overload List