Overview | Group | Tree | Graph | Index | Concepts |
Solver lets you control the order in which the values in the domain of a constrained set variable are tried during the search for a solution.
This class is the handle class of the object that chooses the value to
try when the constrained set variable under consideration is a constrained
integer set variable (that is, an instance of IlcIntSetVar
).
An object of this handle class uses the undocumented virtual member
function IlcIntSetSelectI::select
from its implementation class
to choose a value in the domain of the constrained integer variable under
consideration during the search for a solution.
See the example in IlcIntSelect
or the example in
IlcAnySetSelect
for a model of how to create
and use a selector.
See Also:
IlcEvalIntSet, IloInstantiate, IloIntSetValueSelector, IloIntSetValueSelectorI
Constructor Summary | |
---|---|
public | IlcIntSetSelect() |
public | IlcIntSetSelect(IlcIntSetSelectI * impl) |
public | IlcIntSetSelect(IloSolver solver, IlcEvalIntSet function) |
Method Summary | |
---|---|
public IlcIntSetSelectI * | getImpl() const |
public void | operator=(const IlcIntSetSelect & h) |
public IlcInt | select(IlcIntSetVar var) const |
Constructor Detail |
---|
This constructor creates an empty handle. You must initialize it before you use it.
This constructor creates a handle object from a pointer to an implementation object.
This constructor creates a new integer set selector from an evaluation function. The implementation
object of the newly created handle is an instance of the class IlcIntSetSelectEvalI
constructed with the evaluation function indicated by the argument function
.
Method Detail |
---|
This member function returns a pointer to the implementation object of the invoking handle.
This operator assigns an address to the handle pointer of the invoking object. That address is the location of the implementation object of the provided argument.
This member function uses the virtual member function of its implementation class to select a constrained integer set variable.