Esempio n. 1
0
 /// <summary>
 /// Record a unique genome
 /// </summary>
 /// <param name="genome">genome to be record</param>
 public void setGenomeLog(IGenome genome)
 {
     xtw.WriteStartElement("Genome");
     xtw.WriteAttributeString("Value", genome.ToString());
     xtw.WriteAttributeString("Fitness", genome.Evaluate().ToString());
     xtw.WriteEndElement();
 }
Esempio n. 2
0
 /// <summary>
 /// Record a unique genome
 /// </summary>
 /// <param name="genome">genome to be record</param>
 public void setGenomeLog(IGenome genome)
 {
     xtw.WriteStartElement("Genome");
     xtw.WriteAttributeString("Value", genome.ToString());
     xtw.WriteAttributeString("Fitness", genome.Evaluate().ToString());
     xtw.WriteEndElement();
 }