Documentation of 'org.jgap.distr.Problem' Java class
Problem
org.jgap.distr

Class Problem



  • public class Problem
    extends java.lang.Object
    A problem to be solved by a worker.
    Since:
    3.0
    • Constructor Detail

      • Problem

        public Problem()
      • Problem

        public Problem(FitnessFunction a_fitFunc,
                       int a_popSize,
                       Chromosome[] a_initialChroms)
                throws java.lang.IllegalArgumentException
        Parameters:
        a_fitFunc - the fitness function to use
        a_popSize - the population size to use by/suggest to the worker
        a_initialChroms - initial chromosomes to use (e.g. from previous evolutions), or empty
        Throws:
        java.lang.IllegalArgumentException
        Since:
        3.0
    • Method Detail

      • setID

        public void setID(java.lang.Object a_ID)
        Parameters:
        a_ID - internal ID of the problem, should be unique
        Since:
        3.0
      • getID

        public java.lang.Object getID()
        Returns:
        internal ID of the problem, should be unique
        Since:
        3.0
      • getPopulationSize

        public int getPopulationSize()
        Returns:
        population size to use
        Since:
        3.0
      • getFitnessFunction

        public FitnessFunction getFitnessFunction()
        Returns:
        FitnessFunction to use
        Since:
        3.0
      • getChromosomes

        public Chromosome[] getChromosomes()
        Returns:
        Chromosome[] initial chromosomes to use, may be empty
        Since:
        3.0

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.