The Cplex..::..Callback..::..Context type exposes the following members.

Methods

  NameDescription
Public methodAbort
Stops optimization.
Public methodAddUserCut
Adds a user cut.
Public methodAddUserCuts
Adds user cuts.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExitCutLoop
Ask CPLEX to stop cutting plane speration at the current node.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCandidateObjective
Gets the objective of the current candidate solution.
Public methodGetCandidatePoint(INumVar)
Gets the candidate solution.
Public methodGetCandidatePoint(array<INumVar>[]()[][])
Gets the candidate solution.
Public methodGetCandidatePoint(array<INumVar>[]()[][], Int32, Int32)
Gets the candidate solution.
Public methodGetCandidateRay
Gets the unbounded ray for Cplex.Callback.Context.Id.Candidate.
Public methodGetCandidateSource
This method returns the source of the current candidate solution.
Public methodGetCandidateValue
Evaluates expr with respect to the current candidate solution.
Public methodGetCplex
Get the Cplex instance currently running this callback.
Public methodGetDoubleInfo
Gets double-precision valued information.
Public methodGetGlobalLB(INumVar)
Gets the global lower bound for a variable.
Public methodGetGlobalLB(array<INumVar>[]()[][])
Gets the global lower bounds for an array of variables.
Public methodGetGlobalLB(array<INumVar>[]()[][], Int32, Int32)
Gets the global lower bounds for variables.
Public methodGetGlobalUB(INumVar)
Gets the global upper bound for a variable.
Public methodGetGlobalUB(array<INumVar>[]()[][])
Gets the global upper bounds for an array of variables.
Public methodGetGlobalUB(array<INumVar>[]()[][], Int32, Int32)
Gets the global upper bounds for variables.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetId
Gets the context in which the corresponding callback was invoked.
Public methodGetIncumbent(INumVar)
Gets the current incumbent solution.
Public methodGetIncumbent(array<INumVar>[]()[][])
Gets the current incumbent solution.
Public methodGetIncumbent(array<INumVar>[]()[][], Int32, Int32)
Gets the current incumbent solution.
Public methodGetIncumbentObjective
Gets the objective value for the current incumbent.
Public methodGetIncumbentValue
Evaluates expr with respect to the current incumbent solution.
Public methodGetIntInfo
Gets 32-bit signed, integer-valued information.
Public methodGetLocalLB(INumVar)
Gets the local lower bound for a variable.
Public methodGetLocalLB(array<INumVar>[]()[][])
Gets the local lower bounds for an array of variables.
Public methodGetLocalLB(array<INumVar>[]()[][], Int32, Int32)
Gets the local lower bounds for variables.
Public methodGetLocalUB(INumVar)
Gets the local upper bound for a variable.
Public methodGetLocalUB(array<INumVar>[]()[][])
Gets the local upper bounds for an array of variables.
Public methodGetLocalUB(array<INumVar>[]()[][], Int32, Int32)
Gets the local upper bounds for variables.
Public methodGetLongInfo
Gets 64-bit signed, integer-valued information.
Public methodGetRelaxationObjective
Gets the objective of the current relaxation.
Public methodGetRelaxationPoint(INumVar)
Gets the current relaxation.
Public methodGetRelaxationPoint(array<INumVar>[]()[][])
Gets the current relaxation.
Public methodGetRelaxationPoint(array<INumVar>[]()[][], Int32, Int32)
Gets the current relaxation.
Public methodGetRelaxationStatus()()()()
Convenience wrapper for GetRelaxationStatus(long)(0).
Public methodGetRelaxationStatus(Int64)
Get the solution status of the current relaxation.
Public methodGetRelaxationStatusInt
Public methodGetRelaxationValue
Evaluates expr with respect to the current relaxation.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsCandidatePoint
Tests if callback is invoked for a finite solution.
Public methodIsCandidateRay
Tests if callback is invoked for an unbounded relaxation.
Public methodMakeBranch(IRange, Double)
Convenience wrapper for makeBranch(null, null, null, [range], objest)
Public methodMakeBranch(array<IRange>[]()[][], Double)
Convenience wrapper for makeBranch(null, null, null, ranges, objest)
Public methodMakeBranch(INumVar, Double, Cplex..::..BranchDirection, Double)
Convenience wrapper for makeBranch([x], [bound], [dir], null, objest).
Public methodMakeBranch(array<INumVar>[]()[][], array<Double>[]()[][], array<Cplex..::..BranchDirection>[]()[][], Double)
Convenience wrapper for makeBranch(x, bound, dir, null, objest).
Public methodMakeBranch(array<INumVar>[]()[][], array<Double>[]()[][], array<Cplex..::..BranchDirection>[]()[][], array<IRange>[]()[][], Double)
Create a new branch at the current node.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPostHeuristicSolution
Posts a (heuristic) solution to CPLEX.
Public methodPruneCurrentNode
Prune the current node.
Public methodRejectCandidate()()()()
Rejects the current candidate solution.
Public methodRejectCandidate(IRange)
Rejects the current candidate solution.
Public methodRejectCandidate(array<IRange>[]()[][])
Rejects the current candidate solution.
Public methodRejectCandidateLocal(IRange)
Rejects the current candidate solution.
Public methodRejectCandidateLocal(array<IRange>[]()[][])
Rejects the current candidate solution.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyInBranching
Tests whether the callback was invoked in context Id.Branching. It is a shortcut for GetId() == Cplex.Callback.Context.Id.Branching
Public propertyInCandidate
Tests whether the callback was invoked in context Id.Candidate. It is a shortcut for GetId() == Cplex.Callback.Context.Id.Candidate
Public propertyInGlobalProgress
Tests whether the callback was invoked in context Id.GlobalProgress. It is a shortcut for GetId() == Cplex.Callback.Context.Id.GlobalProgress
Public propertyInLocalProgress
Tests whether the callback was invoked in context Id.LocalProgress. It is a shortcut for GetId() == Cplex.Callback.Context.Id.LocalProgress
Public propertyInRelaxation
Tests whether the callback was invoked in context Id.Relaxation. It is a shortcut for GetId() == Cplex.Callback.Context.Id.Relaxtion
Public propertyInThreadDown
Tests whether the callback was invoked in context Id.ThreadDown. It is a shortcut for GetId() == Cplex.Callback.Context.Id.ThreadDown
Public propertyInThreadUp
Tests whether the callback was invoked in context Id.ThreadUp. It is a shortcut for GetId() == Cplex.Callback.Context.Id.ThreadUp

See Also