P
- the problem typeR
- the representation typepublic class EpigeneticAlgorithm<P extends Problem<R>,R extends Representation<?>>
extends java.lang.Object
Constructor and Description |
---|
EpigeneticAlgorithm(P problem,
int nIndividuals,
int nCells,
float pe,
float pn,
int radius)
Creates a new Epigenetic Algorithm instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Entry point
|
double |
run(int nEvaluations,
int nSeconds,
int cores,
java.lang.Long seed,
java.lang.String outfile,
java.lang.String statfile,
int verbosity)
Executes the algorithm and saves statistics
|
public EpigeneticAlgorithm(P problem, int nIndividuals, int nCells, float pe, float pn, int radius) throws EpigeneticException
problem
- the problemnIndividuals
- the number of individualsnCells
- the number of cellspe
- the epigenetic probabilitypn
- the nucleosome probabilityradius
- the nucleosome radiusEpigeneticException
public double run(int nEvaluations, int nSeconds, int cores, java.lang.Long seed, java.lang.String outfile, java.lang.String statfile, int verbosity) throws java.io.IOException, java.lang.InterruptedException, EpigeneticException
nEvaluations
- the number of evaluation or 0nSeconds
- for the optimization process or 0cores
- number of parallel coresseed
- random seed or null for using current millisecondsoutfile
- the output file for the best solutionstatfile
- the output file for statisticsverbosity
- the verbosity 0: nothing, 1: steps, 2: Stats, 3: Initial and Final, 4: Cells, 5: Populationjava.io.IOException
java.lang.InterruptedException
EpigeneticException
public static void main(java.lang.String[] args)
args
- no args here