private GeneticAlgorithm CreateGaBppSample() { GeneticAlgorithm ga = new GeneticAlgorithm(); #region Problem Configuration var bpp = new PermutationProblem(); #endregion #region Algorithm Configuration ga.Name = "Genetic Algorithm - Bin Packing Problem (3D)"; ga.Description = "A genetic algorithm which solves the a 3d bin packing problem instance"; ga.Problem = bpp; SamplesUtils.ConfigureGeneticAlgorithmParameters<TournamentSelector, PartiallyMatchedCrossover, Swap2Manipulator>( ga, 300, 1, 50, 0.05, 3); #endregion return ga; }
private GeneticAlgorithm CreateGaBppSample() { GeneticAlgorithm ga = new GeneticAlgorithm(); #region Problem Configuration var bpp = new PermutationProblem(); #endregion #region Algorithm Configuration ga.Name = "Genetic Algorithm - Bin Packing Problem (3D)"; ga.Description = "A genetic algorithm which solves the a 3d bin packing problem instance"; ga.Problem = bpp; SamplesUtils.ConfigureGeneticAlgorithmParameters <TournamentSelector, PartiallyMatchedCrossover, Swap2Manipulator>( ga, 300, 1, 50, 0.05, 3); #endregion return(ga); }
public void IsPermutation_WhenStringsDontHaveIdenticalChars_ShouldReturnFalse(string text1, string text2) => Assert.False(PermutationProblem.IsPermutation(text1, text2));