From 1a06c41995803b61786f28e8a94eab3fb43f0741 Mon Sep 17 00:00:00 2001 From: Michael de Paly Date: Wed, 9 Sep 2009 12:46:48 +0000 Subject: [PATCH] getter and setter for cyclepop --- .../go/strategies/DifferentialEvolution.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/eva2/server/go/strategies/DifferentialEvolution.java b/src/eva2/server/go/strategies/DifferentialEvolution.java index 4229c4c7..80982c40 100644 --- a/src/eva2/server/go/strategies/DifferentialEvolution.java +++ b/src/eva2/server/go/strategies/DifferentialEvolution.java @@ -31,9 +31,9 @@ import eva2.tools.math.RNG; */ public class DifferentialEvolution implements InterfaceOptimizer, java.io.Serializable { - private Population m_Population = new Population(); - private transient Population children = null; - private AbstractOptimizationProblem m_Problem = new F1Problem(); + protected Population m_Population = new Population(); + protected transient Population children = null; + protected AbstractOptimizationProblem m_Problem = new F1Problem(); private DETypeEnum m_DEType; private double m_F = 0.8; private double m_k = 0.6; // AKA CR @@ -781,4 +781,16 @@ public class DifferentialEvolution implements InterfaceOptimizer, java.io.Serial public String generationalTipText() { return "Switch to generational DE as opposed to standard steady-state DE"; } + + public boolean isCyclePop() { + return cyclePop; + } + + public void setCyclePop(boolean cycle) { + this.cyclePop = cycle; + } + + public String cyclePopTipText() { + return "if true, individuals are used as parents in a cyclic sequence - otherwise randomly "; + } } \ No newline at end of file