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

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