public class IGA extends Metodo
clasesTest, clasesTrain, datosTest, datosTrain, distanceEu, entradas, ficheroSalida, ficheroTest, ficheroTraining, ficheroValidation, nEntradas, nominalDistance, nominalTrain, nulosTrain, realTest, realTrain, relation, salida, stdDev, test, training
Constructor and Description |
---|
IGA(java.lang.String ficheroScript)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
cruceOrtogonal(Cromosoma[] poblacion,
Cromosoma[] newPob,
int sel1,
int sel2,
int pos,
int nEv,
int nEval,
int nClases)
Function that implements the uniform crossover between two selected cromosomes
|
void |
ejecutar()
Executes the algorithm
|
void |
leerConfiguracion(java.lang.String ficheroScript)
Reads the parameters of the algorithm.
|
normalizar
public IGA(java.lang.String ficheroScript)
ficheroScript
- Configuration scriptpublic void ejecutar()
public int cruceOrtogonal(Cromosoma[] poblacion, Cromosoma[] newPob, int sel1, int sel2, int pos, int nEv, int nEval, int nClases)
poblacion
- Population of chromosomesnewPob
- New populationsel1
- First parentsel2
- Second parentpos
- Position of the chromosomes in the new populationnEv
- actual number of evaluationsnEval
- limited number of evalutationsnClases
- number of classespublic void leerConfiguracion(java.lang.String ficheroScript)
Metodo
leerConfiguracion
in class Metodo
ficheroScript
- Configuration script