|
|
Trees | Indices | Help |
|
|---|
Subclassable class for heuristic callback classes.
This callback will be used after solving each subproblem and at the root node before each round of cuts is added to the problem and resolved.
| Class Variables | |
|
Inherited from Inherited from Inherited from |
| Method Details |
Sets the bounds for a set of variables. Can be called by two forms.
|
Sets a solution to be used as the incumbent. solution is either an instance of SparsePair or a sequence of length two. If it is a sequence, the first entry is a sequence of variable indices or names whose values are to be changed and the second entry is a sequence of floats with the corresponding new solution values. Variables whose indices are not specified remain unchanged. If objective_value is specified, it is taken as the objective value of the new solution. Otherwise, the objective value is computed. Do not call this method multiple times. Calling it again will overwrite any previously specified solution. |
|
|
Trees | Indices | Help |
|
|---|