Examples of GeneticOperator


Examples of org.jgap.GeneticOperator

public final class EcGeneticUtil
{
  private static final Logger logger = Logger.getLogger(EcGeneticUtil.class.getName());
  static GeneticOperator getDeletionOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        for (int i = 0; i < arg0.size(); i++)
View Full Code Here

Examples of org.jgap.GeneticOperator

    };
  }

  static GeneticOperator getCleansingOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        if (Math.random() > c.getBaseMutationRate()/c.getChromosomeLength())
View Full Code Here

Examples of org.jgap.GeneticOperator

    };
  }

  static GeneticOperator getOverlordingOperator(final EvolutionChamber c, final List<Class<? extends EcAction>> actions)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        if (Math.random() > c.getBaseMutationRate()/c.getChromosomeLength())
View Full Code Here

Examples of org.jgap.GeneticOperator

      }
    };
  }
  static GeneticOperator getInsertionOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        for (int i = 0; i < arg0.size(); i++)
View Full Code Here

Examples of org.jgap.GeneticOperator

    };
  }

  private static GeneticOperator getLengthenOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        for (int i = 0; i < arg0.size(); i++)
View Full Code Here

Examples of org.jgap.GeneticOperator

    };
  }

  private static GeneticOperator getShortenOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        if (Math.random() > c.getBaseMutationRate()/c.getChromosomeLength())
View Full Code Here

Examples of org.jgap.GeneticOperator

    };
  }

  static GeneticOperator getSwapOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        for (int i = 0; i < arg0.size(); i++)
View Full Code Here

Examples of org.jgap.GeneticOperator

    };
  }

  static GeneticOperator getTwiddleOperator(final EvolutionChamber c)
  {
    return new GeneticOperator()
    {
      @Override
      public void operate(Population arg0, List arg1)
      {
        for (int i = 0; i < arg0.size(); i++)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.