Extensions of this class implement user-written user cut callbacks (advanced method).

Namespace: ILOG.OPL
Assembly: oplall (in oplall.dll)

Syntax

C#
public abstract class UserCutCallback : Cplex..::..ControlCallback

Remarks

This is an advanced method.

Important:

Advanced methods 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, you should consider carefully whether you can accomplish the same task by means of other methods instead.

This is the user cut callback class. Extensions of this class implement user-written user cut callbacks. They allow you to add user cuts to the problem while the problem is being solved with branch-and-cut search. User cuts may not contribute to the model formulation and restrict the feasible region of the problem, but only strengthen the formulation. If constraints that do restrict the feasible region of the problem are to be added during the optimization, an instance of Cplex.LazyConstraintCallback must be used instead. Cuts are added from this callback by a call to the method Add. The added cuts must be globally valid because they are not removed automatically during backtracking.

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.

Inheritance Hierarchy

System..::..Object
  ILOG.OPL..::..Cplex..::..Callback
    ILOG.OPL..::..Cplex..::..MIPInfoCallback
      ILOG.OPL..::..Cplex..::..MIPCallback
        ILOG.OPL..::..Cplex..::..ControlCallback
          ILOG.OPL..::..Cplex..::..UserCutCallback

See Also