Beispiel #1
0
        public override double[] Compare(Phenotype other)
        {
            Debug.Assert(other is Grid2DPhenotype);
            Grid2DPhenotype otherPhenotype = (Grid2DPhenotype)other;

            return(CompareAdjustedHeight(otherPhenotype));
        }
Beispiel #2
0
        public override double[] Compare(Phenotype other)
        {
            Debug.Assert(other is OutlineMapPhenotype);
            OutlineMapPhenotype otherPhenotype = (OutlineMapPhenotype)other;

            // TODO compute fit.
            return(new double[] { 0.0 });
        }
Beispiel #3
0
 /// <summary>
 /// Compute the multiobjective fitness vector
 /// </summary>
 /// <param name="other">Another Phenotype object against which this
 /// Phenotype is to be compared; usually the target phenotype.</param>
 /// <returns>A multiobjective fitness vector</returns>
 public abstract double[] Compare(Phenotype other);
Beispiel #4
0
 protected RectangularDomain(Phenotype phenotype) :
     base(phenotype)
 {
 }
Beispiel #5
0
 /// <summary>
 /// Return the multiobjective fitness vector for the supplied trial Phenotype.
 /// </summary>
 /// <param name="trial">The trial Phenotype whose fitness will be computed
 /// relative to the Domain target Phenotype.</param>
 /// <returns>A multiobjective fitness vector.</returns>
 public override double[] Fitness(Phenotype trial)
 {
     return(trial.Compare(Target));
 }
Beispiel #6
0
 /// <summary>
 /// Compute the multiobjective Fitness vector
 /// </summary>
 /// <param name="trial">The trial Phenotype of which to compute the fitness</param>
 /// <returns>A multiobjective fitness vector.</returns>
 public abstract double[] Fitness(Phenotype trial);
Beispiel #7
0
 protected Domain(Phenotype target)
 {
     this.target = target;
 }