public class HyperCompoundSolution extends CompoundSolution
calculateSolution
method.Modifier and Type | Field and Description |
---|---|
protected EvalBounds |
compoundSolutionResult
The result of evaluating this compound solution.
|
solutionNames, solutions
evaluation, name
Constructor and Description |
---|
HyperCompoundSolution(java.lang.String thisName)
Create a new instance of HyperCompoundSolution.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateSolution(java.lang.String solutionName,
java.util.HashMap<java.lang.String,?> inputVariables)
Calculate the result for the solution with the specified solution name.
|
java.lang.Object |
clone()
Clone this object to create a copy of the main features.
|
EvalBounds |
getSolutionResult()
Get the result that this compound solution has produced.
|
static HyperCompoundSolution |
toHyperCompoundSolution(SolutionContainer compSoln)
Convert the solution container into a hyper compound solution.
|
randomiseNewSolutionOrder, toCompoundSolution
addSolution, addSolutionName, clearSolutions, getSolution, getSolutionNames, getSolutions, removeSolution
getEvaluation, getName, setEvaluation, setName
protected EvalBounds compoundSolutionResult
HashMap
where the key is a solution name and the value is a solution result defined as a ArrayList
of Double
objects, where each value is the result of an evaluation.
For other evaluators, it provides a slot to store a combined solution result.public HyperCompoundSolution(java.lang.String thisName)
thisName
- the solution name or ID.public void calculateSolution(java.lang.String solutionName, java.util.HashMap<java.lang.String,?> inputVariables) throws java.lang.Exception
solutionName
- the solution name. Use Const.ALL
for all solutions.inputVariables
- an additional set of input variables or constraints.java.lang.Exception
- any error.public EvalBounds getSolutionResult()
public java.lang.Object clone()
clone
in class CompoundSolution
public static HyperCompoundSolution toHyperCompoundSolution(SolutionContainer compSoln)
compSoln
- the solution container to convert.