public override double[] Compare(Phenotype other) { Debug.Assert(other is Grid2DPhenotype); Grid2DPhenotype otherPhenotype = (Grid2DPhenotype)other; return(CompareAdjustedHeight(otherPhenotype)); }
public override double[] Compare(Phenotype other) { Debug.Assert(other is OutlineMapPhenotype); OutlineMapPhenotype otherPhenotype = (OutlineMapPhenotype)other; // TODO compute fit. return(new double[] { 0.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);
protected RectangularDomain(Phenotype phenotype) : base(phenotype) { }
/// <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)); }
/// <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);
protected Domain(Phenotype target) { this.target = target; }