The Cplex..::..NodeCallback type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Abort |
Instructs CPLEX to stop the current optimization after the
user-written callback finishes.
(Inherited from Cplex..::..Callback.) | |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetBestObjValue |
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.) | |
| GetCplexTime |
Returns a time stamp.
(Inherited from Cplex..::..Callback.) | |
| GetCurrentNodeDepth |
Returns the depth of the current node in the search tree.
(Inherited from Cplex..::..MIPCallback.) | |
| GetCutoff |
Returns the cutoff for the objective value when
nodes are being solved during
branch-and-cut search.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetDetTime |
This method returns a deterministic time stamp in ticks.
(Inherited from Cplex..::..Callback.) | |
| GetDirection |
Returns the branch direction for a variable.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetEndDetTime |
This method returns a deterministic time stamp specifying
when the solving process terminates.
(Inherited from Cplex..::..Callback.) | |
| GetEndTime |
This method returns a time stamp specifying when
solving process terminates.
(Inherited from Cplex..::..Callback.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetIncumbentObjValue | 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. | |
| GetIncumbentValue(INumExpr) |
Returns the value expr takes for the current
incumbent solution.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetIncumbentValue(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). | |
| GetIncumbentValues(array<INumVar>[]()[][]) |
Returns incumbent solution values for an array of variables.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetIncumbentValues(array<INumVar>[]()[][], Int32, Int32) |
Returns the incumbent solution values for a set of variables.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetMIPRelativeGap |
This method returns the relative objective gap
of the active problem at the moment the callback is called.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetModel |
Returns the model being solved when the invoking callback is called,
that is, the active model.
(Inherited from Cplex..::..OptimizationCallback.) | |
| GetNcuts |
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.) | |
| GetNiterations | Returns the total number of iterations for solving node relaxations during the current optimization. | |
| GetNiterations64 | Returns the total number of iterations for solving node relaxations during the current optimization. | |
| GetNnodes | Returns the number of nodes processed so far in the active branch-and-cut search. | |
| GetNnodes64 | Returns the number of nodes processed so far in the active branch-and-cut search. | |
| GetNodeDoubleInfo | (Inherited from Cplex..::..MIPCallback.) | |
| GetNodeId |
Returns the node identifier of the node specified by the
node number node.
| |
| GetNodeIntInfo | (Inherited from Cplex..::..MIPCallback.) | |
| GetNodeLongInfo | (Inherited from Cplex..::..MIPCallback.) | |
| GetNodeNumber |
Returns the node number of the node specified by the
node identifier.
| |
| GetNodeNumber64 |
Returns the node number of the node specified by the
node identifier.
| |
| GetNremainingNodes | Returns the number of nodes remaining to be processed, or, equivalently, the number of active nodes in the tree. | |
| GetNremainingNodes64 | Returns the number of nodes remaining to be processed, or, equivalently, the number of active nodes in the tree. | |
| GetObjCoef |
Returns the linear objective function coefficient for the variable
var in the model being solved.
(Inherited from Cplex..::..MIPCallback.) | |
| GetObjCoefs(array<INumVar>[]()[][]) |
Returns the linear objective function coefficients for an array of
variables in the model being solved.
(Inherited from Cplex..::..MIPCallback.) | |
| GetObjCoefs(array<INumVar>[]()[][], Int32, Int32) |
Returns the linear objective function coefficients for a set of
variables in the model being solved.
(Inherited from Cplex..::..MIPCallback.) | |
| GetPriority | Returns the branch priority for the specified variable. | |
| GetQuality |
Returns an instance of Cplex.Quality that contains
the requested quality measure.
(Inherited from Cplex..::..MIPInfoCallback.) | |
| GetStartDetTime |
This method returns a deterministic time stamp specifying when
the solving process started.
(Inherited from Cplex..::..Callback.) | |
| GetStartTime |
This method returns a time stamp specifying when
the solving process started.
(Inherited from Cplex..::..Callback.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasIncumbent | Returns true if an incumbent solution has been found when the callback is called. | |
| Main |
The method to be implemented by user callback classes.
(Inherited from Cplex..::..Callback.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetNodeData |
Sets the user object attached to the node with the
specified number.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |