|
From: Gary P. <gpa...@gm...> - 2009-07-20 06:35:36
|
Removed the initialization of the strategy parameters from the
Individual. This will be replaced by a generic strategy parameter
initialization scheme.
Signed-off-by: Gary Pampara <gpa...@gm...>
---
.../java/net/sourceforge/cilib/ec/Individual.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/net/sourceforge/cilib/ec/Individual.java b/src/main/java/net/sourceforge/cilib/ec/Individual.java
index 3abfde5..a236ba8 100644
--- a/src/main/java/net/sourceforge/cilib/ec/Individual.java
+++ b/src/main/java/net/sourceforge/cilib/ec/Individual.java
@@ -113,11 +113,11 @@ public class Individual extends AbstractEntity {
this.setCandidateSolution(problem.getDomain().getBuiltRepresenation().getClone());
this.getCandidateSolution().randomize(random);
- if (problem.getBehaviouralDomain().getBuiltRepresenation() != null) {
- this.getProperties().put(EntityType.Individual.PHENOTYPES, problem.getBehaviouralDomain().getBuiltRepresenation().getClone());
- StructuredType phenotypes = (StructuredType) this.getProperties().get(EntityType.Individual.PHENOTYPES);
- phenotypes.randomize(random);
- }
+// if (problem.getBehaviouralDomain().getBuiltRepresenation() != null) {
+// this.getProperties().put(EntityType.Individual.PHENOTYPES, problem.getBehaviouralDomain().getBuiltRepresenation().getClone());
+// StructuredType phenotypes = (StructuredType) this.getProperties().get(EntityType.Individual.PHENOTYPES);
+// phenotypes.randomize(random);
+// }
this.dimension = this.getCandidateSolution().size();
this.getProperties().put(EntityType.FITNESS, InferiorFitness.instance());
--
1.6.3.3
|