code: def test_cma_mixed_integer_1_p_1_no_constraint(self):
      N = 3
      NGEN = 15000
  
      toolbox = base.Toolbox()
      toolbox.register("evaluate", benchmarks.sphere)
  
      parent = (numpy.random.rand(N) * 2) + 1
  
      strategy = cma.StrategyActiveOnePlusLambda(
          parent, 0.5, [0, 0, 0.1], lambda_=1
      )
  
      toolbox.register(
          "generate",
          strategy.generate,
          ind_init=creator.__dict__[INDCLSNAME],
      )
      toolbox.register("update", strategy.update)
  
      best = None
  
      for gen in range(NGEN):
          # Generate a new population
          population = toolbox.generate()
  
          # Evaluate the individuals
          for individual in population:
              individual.fitness.values = toolbox.evaluate(individual)
  
              if best is None or individual.fitness >= best.fitness:
                  best = individual
  
          # We must stop CMA-ES before the update becomes unstable
          if best.fitness.values[0] < 1e-12:
              break
  
          # Update the strategy with the evaluated individuals
          toolbox.update(population)
  
      self.assertLess(best.fitness.values[0], 1e-12)
  
imports: from itertools import islice
  import random
  import unittest
  from deap import algorithms
  from deap import base
  from deap import benchmarks
  from deap.benchmarks.tools import hypervolume
  from deap import cma
  from deap import creator
  from deap import tools
label_desc: Use image node_id 3 for calling the TestSingleObjective obj's underlying member method code with example usage: obj.test_cma_mixed_integer_1_p_1_no_constraint() without return types