Exemplo n.º 1
0
 public override string ToString()
 {
     return("Population with " + PopulationSize + " specimen. \r\nFitness: " + Fitness.ToString("F") + " \r\nM:" + MutationRate.ToString("F") + " E:" + EliteClonePercentage.ToString("F") + " S:" + SelectedPercentage.ToString("F") + " F:" + EnoughFeedingsForBreeding.ToString("F")); // Best: " + Best.ToString();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     dna = gameObject.GetComponent <DNA>();
     Mutation();
     mutRat = GameObject.Find("Resource Manager").GetComponent <MutationRate>();
 }