org.jgap.distr
Class Problem
- java.lang.Object
-
- org.jgap.distr.Problem
-
public class Problem extends java.lang.ObjectA problem to be solved by a worker.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor and Description Problem()Problem(FitnessFunction a_fitFunc, int a_popSize, Chromosome[] a_initialChroms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Chromosome[]getChromosomes()FitnessFunctiongetFitnessFunction()java.lang.ObjectgetID()intgetPopulationSize()voidsetID(java.lang.Object a_ID)
-
-
-
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 usea_popSize- the population size to use by/suggest to the workera_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