Exemplo 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();
     });
 }
Exemplo n.º 2
0
 public void Update()
 {
     ParameterAdjusters.ForEach(m => m.Update());
     Crossover.Update();
     Mutations.ForEach(mutation => mutation.Update());
 }