The Cplex..::..Callback..::..Context type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Abort |
Stops optimization.
| |
| AddUserCut |
Adds a user cut.
| |
| AddUserCuts |
Adds user cuts.
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| ExitCutLoop |
Ask CPLEX to stop cutting plane speration at the current node.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetCandidateObjective |
Gets the objective of the current candidate solution.
| |
| GetCandidatePoint(INumVar) |
Gets the candidate solution.
| |
| GetCandidatePoint(array<INumVar>[]()[][]) |
Gets the candidate solution.
| |
| GetCandidatePoint(array<INumVar>[]()[][], Int32, Int32) |
Gets the candidate solution.
| |
| GetCandidateRay |
Gets the unbounded ray for Cplex.Callback.Context.Id.Candidate.
| |
| GetCandidateSource |
This method returns the source of the current candidate solution.
| |
| GetCandidateValue |
Evaluates expr with respect to the current candidate solution.
| |
| GetCplex |
Get the Cplex instance currently running this callback.
| |
| GetDoubleInfo |
Gets double-precision valued information.
| |
| GetGlobalLB(INumVar) |
Gets the global lower bound for a variable.
| |
| GetGlobalLB(array<INumVar>[]()[][]) |
Gets the global lower bounds for an array of variables.
| |
| GetGlobalLB(array<INumVar>[]()[][], Int32, Int32) |
Gets the global lower bounds for variables.
| |
| GetGlobalUB(INumVar) |
Gets the global upper bound for a variable.
| |
| GetGlobalUB(array<INumVar>[]()[][]) |
Gets the global upper bounds for an array of variables.
| |
| GetGlobalUB(array<INumVar>[]()[][], Int32, Int32) |
Gets the global upper bounds for variables.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetId |
Gets the context in which the corresponding callback was invoked.
| |
| GetIncumbent(INumVar) |
Gets the current incumbent solution.
| |
| GetIncumbent(array<INumVar>[]()[][]) |
Gets the current incumbent solution.
| |
| GetIncumbent(array<INumVar>[]()[][], Int32, Int32) |
Gets the current incumbent solution.
| |
| GetIncumbentObjective |
Gets the objective value for the current incumbent.
| |
| GetIncumbentValue |
Evaluates expr with respect to the current incumbent solution.
| |
| GetIntInfo |
Gets 32-bit signed, integer-valued information.
| |
| GetLocalLB(INumVar) |
Gets the local lower bound for a variable.
| |
| GetLocalLB(array<INumVar>[]()[][]) |
Gets the local lower bounds for an array of variables.
| |
| GetLocalLB(array<INumVar>[]()[][], Int32, Int32) |
Gets the local lower bounds for variables.
| |
| GetLocalUB(INumVar) |
Gets the local upper bound for a variable.
| |
| GetLocalUB(array<INumVar>[]()[][]) |
Gets the local upper bounds for an array of variables.
| |
| GetLocalUB(array<INumVar>[]()[][], Int32, Int32) |
Gets the local upper bounds for variables.
| |
| GetLongInfo |
Gets 64-bit signed, integer-valued information.
| |
| GetRelaxationObjective |
Gets the objective of the current relaxation.
| |
| GetRelaxationPoint(INumVar) |
Gets the current relaxation.
| |
| GetRelaxationPoint(array<INumVar>[]()[][]) |
Gets the current relaxation.
| |
| GetRelaxationPoint(array<INumVar>[]()[][], Int32, Int32) |
Gets the current relaxation.
| |
| GetRelaxationStatus()()()() |
Convenience wrapper for GetRelaxationStatus(long)(0).
| |
| GetRelaxationStatus(Int64) |
Get the solution status of the current relaxation.
| |
| GetRelaxationStatusInt | ||
| GetRelaxationValue |
Evaluates expr with respect to the current relaxation.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsCandidatePoint |
Tests if callback is invoked for a finite solution.
| |
| IsCandidateRay |
Tests if callback is invoked for an unbounded relaxation.
| |
| MakeBranch(IRange, Double) |
Convenience wrapper for makeBranch(null, null, null, [range], objest)
| |
| MakeBranch(array<IRange>[]()[][], Double) |
Convenience wrapper for makeBranch(null, null, null, ranges, objest)
| |
| MakeBranch(INumVar, Double, Cplex..::..BranchDirection, Double) |
Convenience wrapper for makeBranch([x], [bound], [dir], null, objest).
| |
| MakeBranch(array<INumVar>[]()[][], array<Double>[]()[][], array<Cplex..::..BranchDirection>[]()[][], Double) |
Convenience wrapper for makeBranch(x, bound, dir, null, objest).
| |
| MakeBranch(array<INumVar>[]()[][], array<Double>[]()[][], array<Cplex..::..BranchDirection>[]()[][], array<IRange>[]()[][], Double) |
Create a new branch at the current node.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| PostHeuristicSolution |
Posts a (heuristic) solution to CPLEX.
| |
| PruneCurrentNode |
Prune the current node.
| |
| RejectCandidate()()()() |
Rejects the current candidate solution.
| |
| RejectCandidate(IRange) |
Rejects the current candidate solution.
| |
| RejectCandidate(array<IRange>[]()[][]) |
Rejects the current candidate solution.
| |
| RejectCandidateLocal(IRange) |
Rejects the current candidate solution.
| |
| RejectCandidateLocal(array<IRange>[]()[][]) |
Rejects the current candidate solution.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| InBranching |
Tests whether the callback was invoked in context Id.Branching.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.Branching | |
| InCandidate |
Tests whether the callback was invoked in context Id.Candidate.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.Candidate | |
| InGlobalProgress |
Tests whether the callback was invoked in context Id.GlobalProgress.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.GlobalProgress | |
| InLocalProgress |
Tests whether the callback was invoked in context Id.LocalProgress.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.LocalProgress | |
| InRelaxation |
Tests whether the callback was invoked in context Id.Relaxation.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.Relaxtion | |
| InThreadDown |
Tests whether the callback was invoked in context Id.ThreadDown.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.ThreadDown | |
| InThreadUp |
Tests whether the callback was invoked in context Id.ThreadUp.
It is a shortcut for
GetId() == Cplex.Callback.Context.Id.ThreadUp |