Class GrammaticalEvolutionAbstractProblem

java.lang.Object
jeco.core.problem.Problem<Variable<Integer>>
jeco.core.problem.GrammaticalEvolutionAbstractProblem
Direct Known Subclasses:
GrammaticalEvolutionProblem, GrammaticalEvolutionProblemSimple, GrammaticalEvolutionStaticModel, GrammaticalEvolutionTemporalModel

public abstract class GrammaticalEvolutionAbstractProblem extends Problem<Variable<Integer>>
Abstract class for grammatical evolution problems.
  • Field Details

    • CHROMOSOME_LENGTH_DEFAULT

      public static final int CHROMOSOME_LENGTH_DEFAULT
      Default length of the chromosome.
      See Also:
    • CODON_UPPER_BOUND_DEFAULT

      public static final int CODON_UPPER_BOUND_DEFAULT
      Default upper bound for the codons.
      See Also:
    • MAX_CNT_WRAPPINGS_DEFAULT

      public static final int MAX_CNT_WRAPPINGS_DEFAULT
      Default maximum number of wrappings.
      See Also:
    • NUM_OF_OBJECTIVES_DEFAULT

      public static final int NUM_OF_OBJECTIVES_DEFAULT
      Default number of objectives.
      See Also:
    • pathToBnf

      protected String pathToBnf
      Path to the BNF file.
    • reader

      protected BnfReader reader
      BNF reader.
    • maxCntWrappings

      protected int maxCntWrappings
      Maximum number of wrappings.
    • currentIdx

      protected int currentIdx
      Current index.
    • currentWrp

      protected int currentWrp
      Current wrapping.
    • correctSol

      protected boolean correctSol
      Correct solution or not.
  • Constructor Details

    • GrammaticalEvolutionAbstractProblem

      public GrammaticalEvolutionAbstractProblem(String pathToBnf, int numberOfObjectives, int chromosomeLength, int maxCntWrappings, int codonUpperBound)
      Constructor.
      Parameters:
      pathToBnf - Path to the BNF file.
      numberOfObjectives - Number of objectives.
      chromosomeLength - Length of the chromosome.
      maxCntWrappings - Maximum number of wrappings.
      codonUpperBound - Upper bound for the codons.
    • GrammaticalEvolutionAbstractProblem

      public GrammaticalEvolutionAbstractProblem(String pathToBnf, int numberOfObjectives)
      Constructor.
      Parameters:
      pathToBnf - Path to the BNF file.
      numberOfObjectives - Number of objectives.
    • GrammaticalEvolutionAbstractProblem

      public GrammaticalEvolutionAbstractProblem(String pathToBnf)
      Constructor.
      Parameters:
      pathToBnf - Path to the BNF file.
  • Method Details