Beispiel #1
0
        public void Reinsertion_IllegalIndividual_Allowed()
        {
            var newInd = ObjectCreators.GetIndividual(builder.StartingDecVec);

            ObjectCreators.EvaluateIndividualAsIllegal(newInd);

            optimiserMock.ReInsert(new[] { newInd });

            Assert.Equal(
                ObjectCreators.OptimiserBuilderMock.PenaltyValue,
                newInd.Fitness);
        }