Invokes the CPLEX callback.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
void Invoke(
	Cplex..::..Callback..::..Context context
)
Visual Basic
Sub Invoke ( _
	context As Cplex..::..Callback..::..Context _
)

Parameters

context
Type: ILOG.CPLEX..::..Cplex..::..Callback..::..Context
An instance of Callback.Context that defines in which context the callback is invoked, which progress information can be queried, and which actions can be performed. This instance is valid only during execution of the callback function. The user must not keep a reference to it.

Remarks

If an object is registered with CPLEX by means of Cplex.Use(Callback.Function, long), then CPLEX will invoke this function of the registered object in all contexts requested by the contextMask passed to Cplex.Use(Callback.Function, long).

Note that in this function you must not invoke any functions of the Cplex instance that is performing the current solve. All functions that can be invoked from a callback are members of context.

Throws ILOG.Concert.Exception in order to indicate any sort of error.

See Also