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

            return(CompareAdjustedHeight(otherPhenotype));
        }
예제 #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 });
        }
예제 #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);
예제 #4
0
 protected RectangularDomain(Phenotype phenotype) :
     base(phenotype)
 {
 }
예제 #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));
 }
예제 #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);
예제 #7
0
 protected Domain(Phenotype target)
 {
     this.target = target;
 }