Esempio n. 1
0
 public override void ApplyRandomChangeToNodeValue(GeneticAlgorithmManager ga_mgr)
 {
     //TODO add somet logic here to handle the different test type... maybe pass this into the test next
     if (ga_mgr.rando.NextDouble() < 0.8)
     {
         //just change the value
         bool result = this.Test.ChangeTestValue(ga_mgr);
         this._tree._source = "new test value";
     }
     else
     {
         this.Test          = TreeTest.TreeTestFactory(ga_mgr);
         this._tree._source = "new test";
     }
 }
Esempio n. 2
0
 public override void CreateRandom(GeneticAlgorithmManager ga_mgr)
 {
     this.Test = TreeTest.TreeTestFactory(ga_mgr);
 }