Overview | Group | Tree | Graph | Index | Concepts |
This implementation class derives from the abstract implementation class
IlcSearchSelectorI
. Instances of
IlcMTSearchSelectorI
are implementation objects of search
selectors for multithreaded search.
Handle and Implementation Classes
A search selector is an object in Concert Technology. Like other Concert
Technology entities, a search selector is implemented by means of two
classes: a handle class and an implementation class. In other words, an
instance of the class IlcMTSearchSelector
(a handle) contains a
data member (the handle pointer) that points to an instance of the class
IlcMTSearchSelectorI
(its implementation object).
Purpose of Search Selector
A search selector has several purposes when it is used internally by Concert Technology code:
update
,
updateTo,
and
saveObjectiveValue
.
evaluate
and
isFeasible
.
registerSolution
,
whenFinished
,
getCurrentNode
,
activateNode
, and
closeNode
.A search selector has its own life cycle. To be used internally by
Concert Technology code, it has to be cloned by the duplicate
member function.
Implementing Your Own Search Selector
The function IlcMTMinimizeVar
returns an
instance of IlcMTSearchSelector
. In the documentation of that
function, we describe part of its implementation details. From that
description, you can get an idea of how a search selector is used and what
you must include in your own implementation of a search selector. See
IlcMTMinimizeVar
.
See Also:
IlcFloatVarRef, IlcIntVarRef, IlcMTMinimizeVar
Constructor Summary | |
---|---|
public | IlcMTSearchSelectorI(IloSolver s, IlcBool duplicate) |
Method Summary | |
---|---|
public void | addFloatVar(IlcFloatVar v, const char * name) |
public void | addIntVar(IlcIntVar v, const char * name) |
public IlcFloatVar | getFloatVar(IloSolver s, IlcFloatVarRef ref) const |
public IlcFloatVarRef | getFloatVarRef(const char *) const |
public IlcIntVar | getIntVar(IloSolver s, IlcIntVarRef ref) const |
public IlcIntVarRef | getIntVarRef(const char * name) const |
Inherited Methods from IlcSearchSelectorI |
---|
activateNode, closeNode, duplicateSelector, evaluate, getCurrentNode, isFeasible, saveObjectiveValue, updateObjective, updateObjectiveTo, whenFinishedTree, whenLeaf |
Constructor Detail |
---|
This constructor creates a search selector for multithreaded search. The parameter
duplicate
indicates whether the object is an internal copy used by the solver
(duplicate = IlcTrue
), or whether it is just a template.
Method Detail |
---|
This member function stores the constrained floating-point variable v
under
the name indicated by name
.
This member function stores the constrained integer variable v
under the
name indicated by name
.
This member function retrieves the variable stored by the solver s
under the
name corresponding to the reference ref
.
This member function retrieves all the constrained floating-point variables stored under
the name indicated by name
.
This member function retrieves the variable stored by the solver s
under
the name corresponding to the reference ref
.
This member function retrieves all the constrained integer variables stored under
the name indicated by name
.