public abstract class AbstractMultiProblem extends AbstractProblem
In order to provide a visualized evaluation the method AbstractSingleProblem.replayWithVisualization(core.AbstractRepresentation) must be overwritten.
To support requirement changes based on different parameters override the following method:
-AbstractProblem.adjustRequirements(java.util.Hashtable, java.util.Hashtable)
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMultiProblem.RepresentationWithScore
A structure that contains a representation along with its score.
|
| Constructor and Description |
|---|
AbstractMultiProblem() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.List<AbstractMultiProblem.RepresentationWithScore> |
evaluateFitness(AbstractRepresentation[] candidates)
Returns the fitness of the given representations.
|
void |
replayWithVisualization(AbstractRepresentation[] candidates)
This function is called when the user request a visual replay from the problem.
|
adjustRequirements, getRandom, setRandomgetProperties, getPropertyValue, getTypeOfProperty, getXMLData, setProperties, setXMLDatapublic abstract java.util.List<AbstractMultiProblem.RepresentationWithScore> evaluateFitness(AbstractRepresentation[] candidates)
candidates - Array of candidates to be evaluated.public void replayWithVisualization(AbstractRepresentation[] candidates)
It is recommended to use advanced threading for display like SwingWorker.
candidates - Array of candidates whose replay has been requested.