|
|
Trees | Indices | Help |
|
|---|
Subclassable class for lazy constraint callback classes.
This callback will be used within the cut loop that CPLEX calls at each node of the branch and cut algorithm. It will be called once after CPLEX has ended its own cut generation loop so that the user can specify additional cuts to be added to the cut pool.
| Class Variables | |
use_cut = UseCut()See UseCut() |
|
|
Inherited from Inherited from |
|
| Method Details |
Adds a linear cut to to the current subproblem. cut must be either a SparsePair instance or a list of two lists, the first of which specifies variables, the second of which specifies the values of the cut. sense must be a single-character string; ("L", "G", "E") rhs is a float, specifying the righthand side of the cut. use indicates under what circumstances the cut should be used. It can take the following values self.use_cut.force (default) : force CPLEX to use the cut self.use_cut.purge : allow CPLEX to purge the cut self.use_cut.filter : treat as cuts CPLEX creates |
Adds a linear local cut to the current subproblem. A local cut is a cut that is only valid at the current node and the subtree rooted by the current node. It does not need to be globally valid. cut must be either a SparsePair instance or a list of two lists, the first of which specifies variables, the second of which specifies the values of the cut. sense must be a single-character string; ("L", "G", "E") rhs is a float, specifying the righthand side of the cut. |
|
|
Trees | Indices | Help |
|
|---|