public abstract class SearchFramework
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
datasetType
The type of dataset to evaluate
|
protected double |
similarityRange
Range for which values are considered to be the same
|
protected boolean |
similarityRangeAsPercentage
True if the similarity range is measured as a percentage of the largest score.
|
protected java.util.ArrayList<Solution> |
solutions
List of solutions to evaluate
|
protected java.lang.Object |
stopping
The stopping criterion
|
protected org.ai_heuristic.functs.FunctionMetric |
valueCompare
To compare two solution results
|
Constructor and Description |
---|
SearchFramework(TestSpec testSpec)
Create a new instance of SearchFramework.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
insideRange(java.lang.Object value)
If a similarity range has been specified, then measure if the value is inside of it.
|
void |
setSolutions(java.util.ArrayList<Solution> thisSolutions)
Set the solutions list to solve.
|
abstract java.util.ArrayList<MatchPair> |
solve()
Search for the best solution set to the problem.
|
protected java.lang.String datasetType
protected boolean similarityRangeAsPercentage
protected double similarityRange
protected java.lang.Object stopping
protected java.util.ArrayList<Solution> solutions
protected org.ai_heuristic.functs.FunctionMetric valueCompare
public SearchFramework(TestSpec testSpec) throws java.lang.Exception
testSpec
- with any other test spec parameters.java.lang.Exception
- any error.public abstract java.util.ArrayList<MatchPair> solve() throws java.lang.Exception
java.lang.Exception
- any error.protected boolean insideRange(java.lang.Object value)
value
- the value to measure. This must be convertible to a float.public void setSolutions(java.util.ArrayList<Solution> thisSolutions)
thisSolutions
- the list of SearchSolution
to solve.