diff --git a/src/eva2/server/go/problems/AbstractOptimizationProblem.java b/src/eva2/server/go/problems/AbstractOptimizationProblem.java index 4fedd21c..5adfeedb 100644 --- a/src/eva2/server/go/problems/AbstractOptimizationProblem.java +++ b/src/eva2/server/go/problems/AbstractOptimizationProblem.java @@ -465,7 +465,7 @@ implements InterfaceOptimizationProblem /*, InterfaceParamControllable*/, Serial * Refine a given individual using Nelder-Mead-Simplex local search. Return true, if the refined result is within a given * distance from the original individual in phenotype space. The maxEvaluations parameter gives the maximum evaluations * for the local search. Using the epsilonFitConv parameter one may define a convergence criterion as PhenotypeConvergenceTerminator - * which is combined (using OR) with the evaluation counter. + * based on the given threshold and 100*dim evaluations, which is combined (using OR) with the evaluation counter. * If maxEvaluations is smaller than zero, a maximum of 500*dim evaluations is employed. * Be aware that this may cost quite some runtime depending on the target * function. diff --git a/src/eva2/server/go/problems/InterfaceHasSolutionViewer.java b/src/eva2/server/go/problems/InterfaceHasSolutionViewer.java new file mode 100644 index 00000000..b8b7ac9a --- /dev/null +++ b/src/eva2/server/go/problems/InterfaceHasSolutionViewer.java @@ -0,0 +1,11 @@ +package eva2.server.go.problems; + +/** + * An interface for problems which have a specific viewer. + * + * @author mkron + * + */ +public interface InterfaceHasSolutionViewer { + public InterfaceSolutionViewer getSolutionViewer(); +} diff --git a/src/eva2/server/go/problems/InterfaceSolutionViewer.java b/src/eva2/server/go/problems/InterfaceSolutionViewer.java new file mode 100644 index 00000000..a31c213c --- /dev/null +++ b/src/eva2/server/go/problems/InterfaceSolutionViewer.java @@ -0,0 +1,29 @@ +package eva2.server.go.problems; + +import eva2.server.go.populations.Population; + +/** + * A standard interface for solution viewers which display a single (best) solution + * or a population of solutions. + * + * @author mkron + * + */ +public interface InterfaceSolutionViewer { + /** + * Initialize the view for a certain problem. + * @param prob + */ + public void initView(AbstractOptimizationProblem prob); + + /** + * Reset the view. + */ + public void resetView(); + + /** + * Update the view by displaying a population of solutions (often only the best one is shown). + * @param pop + */ + public void updateView(Population pop, boolean showAllIfPossible); +}