NO FRAMES

Class IloCplex::CutCallbackI

Definition file: ilocplexi.h
Include files: ilcplex/ilocplex.h

An instance of the class IloCplex::CutCallbackI represents a user-written callback in an application that uses an instance of IloCplex to solve a mixed integer programming problem (a MIP). This class offers a method to add a local or global cut from a user-written callback. More than one cut can be added in this callback by calling the method add or addLocal multiple times. All added cuts must be linear.

The constructor and methods of this class are protected for use in deriving a user-written callback class and in implementing the main method there.

If an attempt is made to access information not available to an instance of this class, an exception is thrown.

See Also:

Constructor Summary
protected CutCallbackI()
Method Summary
protected IloConstraintadd(IloConstraint)
protected IloConstraintaddLocal(IloConstraint)
Inherited Methods from ControlCallbackI
getDownPseudoCost, getDownPseudoCost, getFeasibilities, getFeasibilities, getFeasibility, getFeasibility, getFeasibility, getFeasibility, getLB, getLB, getLBs, getLBs, getNodeData, getObjValue, getSlack, getSlacks, getUB, getUB, getUBs, getUBs, getUpPseudoCost, getUpPseudoCost, getValue, getValue, getValue, getValues, getValues, isSOSFeasible, isSOSFeasible
Inherited Methods from MIPCallbackI
getBestObjValue, getCutoff, getDirection, getDirection, getIncumbentObjValue, getIncumbentValue, getIncumbentValue, getIncumbentValues, getIncumbentValues, getMyThreadNum, getNcliques, getNcovers, getNdisjunctiveCuts, getNflowCovers, getNflowPaths, getNfractionalCuts, getNGUBcovers, getNimpliedBounds, getNiterations, getNMIRs, getNnodes, getNremainingNodes, getObjCoef, getObjCoef, getObjCoefs, getObjCoefs, getPriority, getPriority, getUserThreads, hasIncumbent
Inherited Methods from CallbackI
abort, duplicateCallback, getEnv, getModel, getNcols, getNQCs, getNrows, main
Constructor Detail

CutCallbackI

protected CutCallbackI()

This constructor creates a callback for use in an application with a user-defined cut to solve a MIP.


Method Detail

add

protected IloConstraint add(IloConstraint con)

This method adds a cut for the constraint indicated by con. This cut must be globally valid; it will not be removed by backtracking or any other means during the search. The added cut must be linear.


addLocal

protected IloConstraint addLocal(IloConstraint con)

This method adds a local cut for the constraint indicated by con. IloCplex will manage the local cut in such a way that it will be active only when processing nodes of this subtree. The added cut must be linear.