Get the Cplex instance currently running this callback.

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

Syntax

C#
public abstract Cplex GetCplex()
Visual Basic
Public MustOverride Function GetCplex As Cplex

Remarks

The returned Cplex object can be used, for example, to create new constraints that cut off candidate solutions in RejectCandidate.Or RejectCandidateLocal

Important: Do not use anything other than the factory methods of the returned Cplex object. In particular, do not modify this instance. Doing so is unsupported and results in undefined behavior.

See Also