Esempio n. 1
0
 public void Initialize()
 {
     ParameterAdjusters.ForEach(mutation =>
     {
         mutation.Algorithm = Algorithm;
         mutation.Initialize();
     });
     Crossover.Algorithm = Algorithm;
     Crossover.Initialize();
     Mutations.ForEach(mutation =>
     {
         mutation.Algorithm = Algorithm;
         mutation.Initialize();
     });
 }
Esempio n. 2
0
 public void Update()
 {
     ParameterAdjusters.ForEach(m => m.Update());
     Crossover.Update();
     Mutations.ForEach(mutation => mutation.Update());
 }