Overview | Group | Tree | Graph | Index | Concepts |
This function creates and returns a search selector that implements a minimization search for
multithreaded search according to the variable v
.
If a variable v
appears in more than one agent (that is, more than one worker),
then every copy of the variable v
must have the same name.
The search selector that this function creates and returns does several things:
v
and then reactivates this variable after the complete exploration of the search tree defined
by the goal passed to
IlcSelectSearch
.
d
is found, the constraint
v <= d - step
is added to the solver for the remainder of the search tree.Implementation
Here we describe important parts of the implementation of this function because it returns an
instance of IlcSearchSelector
. If you implement your own search selector, then these
implementation details may help you determine how your search selector is likely to be used and how
it should be implemented.
This function works with the implementation class IlcMTMinimizeIntVarI
for constrained
variables that are instances of IlcIntVar
. The implementation class IlcMTMinimizeIntVarI
is a subclass of IlcMTSearchSelectorI
. The multithread class
IlcMTMinimizeIntVarI
differs from its sequential correspondent IlcMinimizeIntVarI
in the following ways:
IlcMTMinimizeIntVarI
has an additional data member,
_vars
of type
IlcIntVarRef
. This data member stores a reference to all copies of the same variable to
facilitate direct, simple access to any one of the copies.
IlcMTMinimizeIntVarI
stores the variable with its name when the variable is constructed.
When the variable is duplicated, the constructor reads the corresponding reference (
IlcIntVarRef
) in this way:See Also: