class TabuFeatures extends AnyRef
The TabuFeatures
keeps track of pairs of features, so they are not
repeatedly tried.
- Alphabetic
- By Inheritance
- TabuFeatures
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TabuFeatures()
Value Members
-
def
addTaboo(feature1: Int, feature2: Int, cutOff: Int): Unit
Add the 'j'th and 'j+1'th element of 'featureOrder' into the tabu list.
Add the 'j'th and 'j+1'th element of 'featureOrder' into the tabu list. If the tabu list is too large, remove the oldest element.
- feature1
'j'th element of 'featureOrder'
- feature2
'j+1'th element of 'featureOrder'
- cutOff
tabu list size
-
def
clear(): Unit
Clear all features.
-
def
notInTaboo(feature1: Int, feature2: Int): Boolean
Check if the 'j'th and 'j+1'th element of 'featureOrder' are in the tabu list.
Check if the 'j'th and 'j+1'th element of 'featureOrder' are in the tabu list.
- feature1
'j'th element of 'featureOrder'
- feature2
'j+1'th element of 'featureOrder'