ILOG CPLEX .NET Reference Manual

Cplex.CutCallback Class

Base class for user-written callbacks adding cuts during search.

For a list of all members of this type, see Cplex.CutCallback Members.

System.Object
   ILOG.CPLEX.Cplex.Callback
      ILOG.CPLEX.Cplex.MIPCallback
         ILOG.CPLEX.Cplex.ControlCallback
            ILOG.CPLEX.Cplex.CutCallback
               ILOG.CPLEX.Cplex.LazyConstraintCallback

public abstract class Cplex.CutCallback : ControlCallback

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This is an advanced class.

Important:

Advanced classes typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other classes instead.

This is the base class for user-written callbacks that add cuts during the branch-and-cut search. Both local and global cuts can be added with this callback, with the methods addLocal and add, respectively. You can add more than one cut in this callback by calling add or addLocal multiple times.

When global cuts are added with the method add, they are not removed by backtracking in the search tree. Thus, such cuts must be valid for the entire problem; they must not depend on variables being fixed in a particular subtree.

When local cuts are added with the method addLocal, they are removed by backtracking in the search tree. Thus, such cuts may depend on variables fixed in a particular subtree.

The constructor and methods of this class are protected to make sure that they are used only to derive a user-written callback class or to implement the main method in it.

Requirements

Namespace: ILOG.CPLEX

Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll)

See Also

Cplex.CutCallback Members | ILOG.CPLEX Namespace