The Cplex..::..LazyConstraintCallback type exposes the following members.

Methods

  NameDescription
Protected methodAbort
Instructs CPLEX to stop the current optimization after the user-written callback finishes.
(Inherited from Cplex..::..Callback.)
Protected methodAdd(IRange)
Adds cut as a global lazy constraint to the problem being solved.
Protected methodAdd(IRange, Int32)
Adds cut as a global lazy constraint to the problem being solved.
Protected methodAddLocal
Adds cut as a local lazy constraint to the problem being solved.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetBestObjValue
This method returns a bound on the optimal solution value of the active problem at the moment the callback is called.
(Inherited from Cplex..::..MIPInfoCallback.)
Public methodGetCplexTime
Returns a time stamp.
(Inherited from Cplex..::..Callback.)
Protected methodGetCurrentNodeDepth
Returns the depth of the current node in the search tree.
(Inherited from Cplex..::..MIPCallback.)
Protected methodGetCutoff
Returns the cutoff for the objective value when nodes are being solved during branch-and-cut search.
(Inherited from Cplex..::..MIPInfoCallback.)
Public methodGetDetTime
This method returns a deterministic time stamp in ticks.
(Inherited from Cplex..::..Callback.)
Protected methodGetDirection
Returns the branch direction for a variable.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetDownPseudoCost
Returns the pseudo cost for branching down on variable var.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetEndDetTime
This method returns a deterministic time stamp specifying when the solving process terminates.
(Inherited from Cplex..::..Callback.)
Protected methodGetEndTime
This method returns a time stamp specifying when solving process terminates.
(Inherited from Cplex..::..Callback.)
Protected methodGetFeasibilities(array<INumVar>[]()[][])
States whether the variables in the specified array are integer feasible, integer infeasible, or implied integer feasible in the current node solution.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetFeasibilities(array<INumVar>[]()[][], Int32, Int32)
Queries whether the variables specified in the array are integer feasible, integer infeasible, or implied integer feasible in the current node solution.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetFeasibility
States whether the variable var is integer feasible, integer infeasible, or implied integer feasible in the current node solution.
(Inherited from Cplex..::..ControlCallback.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetIncumbentObjValue

Returns the objective value of the current best integer solution at the moment the callback is called.

This method returns the objective value for the current incumbent solution (that is, the best integer solution found so far).

If there is no incumbent, this method returns a very large positive number for a minimization or a very small negative number for a maximization.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetIncumbentValue(INumExpr)
Returns the value expr takes for the current incumbent solution.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetIncumbentValue(INumVar)

Returns the value of the specified variable for the current best integer solution.

This method returns the value of the variable in the current incumbent solution (that is, the best integer solution found so far).

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetIncumbentValues(array<INumVar>[]()[][])
Returns incumbent solution values for an array of variables.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetIncumbentValues(array<INumVar>[]()[][], Int32, Int32)
Returns the incumbent solution values for a set of variables.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetLB
Returns the current lower bound for the variable var.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetLBs(array<INumVar>[]()[][])
Returns the current lower bounds for an array of variables.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetLBs(array<INumVar>[]()[][], Int32, Int32)
Returns the current lower bounds for a set of variables.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetMIPRelativeGap
This method returns the relative objective gap of the active problem at the moment the callback is called.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetModel
Returns the model being solved when the invoking callback is called, that is, the active model.
(Inherited from Cplex..::..OptimizationCallback.)
Protected methodGetNcuts
Returns the number of cuts of the specified type that have been added to the node relaxation at the moment the callback is called.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetNiterations

Returns the total number of iterations for solving node relaxations during the current optimization.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetNiterations64

Returns the total number of iterations for solving node relaxations during the current optimization.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetNnodes

Returns the number of nodes processed so far in the active branch-and-cut search.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetNnodes64

Returns the number of nodes processed so far in the active branch-and-cut search.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetNodeData
Returns the user object attached to the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetNodeDoubleInfo (Inherited from Cplex..::..MIPCallback.)
Protected methodGetNodeId

Returns the node identifier of the current node.

(Inherited from Cplex..::..ControlCallback.)
Protected methodGetNodeIntInfo (Inherited from Cplex..::..MIPCallback.)
Protected methodGetNodeLongInfo (Inherited from Cplex..::..MIPCallback.)
Protected methodGetNremainingNodes

Returns the number of nodes remaining to be processed, or, equivalently, the number of active nodes in the tree.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetNremainingNodes64

Returns the number of nodes remaining to be processed, or, equivalently, the number of active nodes in the tree.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetObjCoef
Returns the linear objective function coefficient for the variable var in the model being solved.
(Inherited from Cplex..::..MIPCallback.)
Protected methodGetObjCoefs(array<INumVar>[]()[][])
Returns the linear objective function coefficients for an array of variables in the model being solved.
(Inherited from Cplex..::..MIPCallback.)
Protected methodGetObjCoefs(array<INumVar>[]()[][], Int32, Int32)
Returns the linear objective function coefficients for a set of variables in the model being solved.
(Inherited from Cplex..::..MIPCallback.)
Protected methodGetObjValue
Returns the objective function value of the solution at the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetPriority

Returns the branch priority for the specified variable.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetQuality
Returns an instance of Cplex.Quality that contains the requested quality measure.
(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodGetSlack
Returns the slack value of a constraint for the solution of the continuous relaxation of the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetSlacks(array<IRange>[]()[][])
Returns the slack values of an array of constraints for the solution of the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetSlacks(array<IRange>[]()[][], Int32, Int32)
Returns the slack values of a set of constraints for the solution of the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetSOSFeasibility(ISOS1)
States whether the special ordered set of type 1 is integer feasible, integer infeasible, or implied integer feasible in the current node solution.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetSOSFeasibility(ISOS2)
States whether the special ordered set of type 2 is integer feasible, integer infeasible, or implied integer feasible in the current node solution.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetStartDetTime
This method returns a deterministic time stamp specifying when the solving process started.
(Inherited from Cplex..::..Callback.)
Protected methodGetStartTime
This method returns a time stamp specifying when the solving process started.
(Inherited from Cplex..::..Callback.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGetUB
Returns the current upper bound for the variable var.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetUBs(array<INumVar>[]()[][])
Returns the current upper bounds for an array of variables.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetUBs(array<INumVar>[]()[][], Int32, Int32)
Returns the current upper bounds for a set of variables.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetUpPseudoCost
Returns the pseudo cost for branching up on variable var.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetValue(INumExpr)
Returns the value expr takes for the solution of the continuous relaxation of the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetValue(INumVar)
Returns the solution value of a variable at the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetValues(array<INumVar>[]()[][])
Returns the solution values for an array of variables at the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodGetValues(array<INumVar>[]()[][], Int32, Int32)
Returns the solution values for a set of variables at the current node.
(Inherited from Cplex..::..ControlCallback.)
Protected methodHasIncumbent

Returns true if an incumbent solution has been found when the callback is called.

(Inherited from Cplex..::..MIPInfoCallback.)
Protected methodIsUnboundedNode
This method indicates whether or not the callback was invoked when the LP relaxation is found to be unbounded and the user needs to test whether a lazy constraint cuts off the unbounded direction.
Public methodMain
The method to be implemented by user callback classes.
(Inherited from Cplex..::..Callback.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetNodeData
Sets the user object attached to the current node.
(Inherited from Cplex..::..ControlCallback.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

See Also