T
- type of variable being used in the search.public class SplitRandomSelectFloat<T extends Var> extends SimpleSelect<T>
Modifier and Type | Field and Description |
---|---|
boolean |
leftFirst
It specifies if the left branch (values smaller or equal to the value selected)
are first considered.
|
boolean |
roundRobin |
inputOrderTieBreaking, position, searchVariables, tieBreakingComparator, variableOrdering
Constructor and Description |
---|
SplitRandomSelectFloat(Store store,
T[] variables,
ComparatorVariable<T> varSelect)
The constructor to create a simple choice select mechanism.
|
SplitRandomSelectFloat(Store store,
T[] variables,
ComparatorVariable<T> varSelect,
ComparatorVariable<T> tieBreakerVarSelect)
It constructs a simple selection mechanism for choice points.
|
Modifier and Type | Method and Description |
---|---|
PrimitiveConstraint |
getChoiceConstraint(int index)
It always returns null as choice point is obtained by getChoiceVariable
and getChoiceValue.
|
T |
getChoiceVariable(int index)
It returns the variable which is the base on the next choice point.
|
getChoiceValue, getIndex, getVariablesMapping, placeSearchVariable, toString
public boolean leftFirst
public boolean roundRobin
public SplitRandomSelectFloat(Store store, T[] variables, ComparatorVariable<T> varSelect)
store
- current storevariables
- variables upon which the choice points are created.varSelect
- the variable comparator to choose the variable.public SplitRandomSelectFloat(Store store, T[] variables, ComparatorVariable<T> varSelect, ComparatorVariable<T> tieBreakerVarSelect)
store
- current storevariables
- variables used as basis of the choice point.varSelect
- the main variable comparator.tieBreakerVarSelect
- secondary variable comparator employed if the first one gives the same metric.public T getChoiceVariable(int index)
SimpleSelect
getChoiceVariable
in interface SelectChoicePoint<T extends Var>
getChoiceVariable
in class SimpleSelect<T extends Var>
index
- the position of the last variable in selection choice point heuristic.public PrimitiveConstraint getChoiceConstraint(int index)
SimpleSelect
getChoiceConstraint
in interface SelectChoicePoint<T extends Var>
getChoiceConstraint
in class SimpleSelect<T extends Var>
index
- the position of the last variable returned by selection choice point heuristic.Copyright © 2022. All rights reserved.