Package org.jgap

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


    };
  }

  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

    };
  }

  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

      }
    };
  }
  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

    };
  }

  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

    };
  }

  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

    };
  }

  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

    };
  }

  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

Related Classes of org.jgap.GeneticOperator

Copyright © 2018 www.massapicom. 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.