public class HeuristicGeneticSolution extends GeneticSolution
chromosome, createdFrom
evaluation, name
Constructor and Description |
---|
HeuristicGeneticSolution(java.lang.String thisName)
Create a new instance of HeuristicGeneticSolution.
|
Modifier and Type | Method and Description |
---|---|
Solution |
evolve(java.lang.String solutionName,
Solution evolveWith)
Combine the existing solution with the new solution.
|
void |
solve(java.util.HashMap<java.lang.String,?> inputVariables)
Calculate the result of this solution over all problem datasets.
|
protected EvalBounds |
solveNextSolution(org.ai_heuristic.eval.metric.MetricDataset problemDataset)
Calculate the result of this solution over the specified problem dataset.
|
addCreatedFrom, clearCreatedFrom, getChromosome, getCreatedFrom, setChromosome
getEvaluation, getName, setEvaluation, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEvaluation, getName, setEvaluation, setName
public HeuristicGeneticSolution(java.lang.String thisName)
thisName
- the solution name.public void solve(java.util.HashMap<java.lang.String,?> inputVariables) throws java.lang.Exception
inputVariables
- an additional set of input variables or constraints. This can be null or empty.java.lang.Exception
- any error.protected EvalBounds solveNextSolution(org.ai_heuristic.eval.metric.MetricDataset problemDataset) throws java.lang.Exception
problemDataset
- the problem dataset to evaluate.java.lang.Exception
- any error.public Solution evolve(java.lang.String solutionName, Solution evolveWith) throws java.lang.Exception
solutionName
- the name for the new solution.evolveWith
- the solution to evolve with.java.lang.Exception
- any error.