public override bool Equals(object obj) { if (!(obj is GeneticAlgorithmConfig)) { return(false); } var tmp = (GeneticAlgorithmConfig)obj; return(obj.GetType() == GetType() && PercentToSelect == tmp.PercentToSelect && MutationChance == tmp.MutationChance && ParentMethod == tmp.ParentMethod && RandOptions.Equals(tmp.RandOptions)); }
public void Reinitialize() { ParentChances = ParentChoosingFactory.Get(ParentMethod); RandOptions.Reinitialize(); }