public void SetNormalizedValueForObjective(Objective objective, double value)
 {
     ObjectivesValuesForNormalization[objective.Index] = value;
 }
 public void SetValueForObjective(Objective objective, double value)
 {
     objective.Attribute.SetValue(this, value, null);
 }
 public double GetNormalizedValueForObjective(Objective objective)
 {
     return(ObjectivesValuesForNormalization[objective.Index]);
 }
 public double GetFitnessForObjective(Objective objective)
 {
     return(ObjectivesValuesForMaximization[objective.Index]);
 }
 public double GetValueForObjective(Objective objective)
 {
     return(Convert.ToDouble(objective.Attribute.GetValue(this, null)));
 }
 public void SetValueForObjective(Objective objective, double value)
 {
     objective.Attribute.SetValue(this, value, null);
 }
        public int CompareToByObjective(IndividualBase another, Objective objective)
        {
            double individualAttributeValue = GetFitnessForObjective(objective);
            double anotherIndividualAttributeValue = another.GetFitnessForObjective(objective);

            if (anotherIndividualAttributeValue > individualAttributeValue)
                return -1;
            else if (anotherIndividualAttributeValue == individualAttributeValue)
                return 0;
            else
                return 1;
        }
 public void SetNormalizedValueForObjective(Objective objective, double value)
 {
     ObjectivesValuesForNormalization[objective.Index] = value;
 }
 public void SetFitnessForObjective(Objective objective)
 {
     if (objective.Goal == Goal.Minimize)
         ObjectivesValuesForMaximization[objective.Index] = Math.Abs(objective.BigValueForMaximization - GetValueForObjective(objective));
     else
         ObjectivesValuesForMaximization[objective.Index] = GetValueForObjective(objective);
 }
 public double GetValueForObjective(Objective objective)
 {
     return Convert.ToDouble(objective.Attribute.GetValue(this, null));
 }
 public double GetNormalizedValueForObjective(Objective objective)
 {
     return ObjectivesValuesForNormalization[objective.Index];
 }
 public double GetFitnessForObjective(Objective objective)
 {
     return ObjectivesValuesForMaximization[objective.Index];
 }