public class Algorithm
extends java.lang.Object
It contains the implementation of the algorithm
Constructor and Description |
---|
Algorithm()
Default constructor
|
Algorithm(parseParameters parameters)
It reads the data from the input files (training, validation and test) and parse all the parameters
from the parameters array.
|
Modifier and Type | Method and Description |
---|---|
double |
eval_test(Individual indiv)
It evaluate the RB encoded in the individual "indiv"
|
double |
eval(Individual indiv)
It evaluate the RB encoded in the individual "indiv"
|
void |
Exchange()
It exchange the old and the new population
|
void |
execute()
It launches the algorithm
|
java.lang.String |
Print_Population(Individual indiv)
It prints the current RB encoded in the individual "indiv" as a String
|
int[] |
solucion()
It returns the best solution
|
public Algorithm()
Default constructor
public Algorithm(parseParameters parameters)
It reads the data from the input files (training, validation and test) and parse all the parameters from the parameters array.
parameters
- parseParameters It contains the input files, output files and parameterspublic void execute()
public void Exchange()
It exchange the old and the new population
public int[] solucion()
It returns the best solution
public double eval(Individual indiv)
It evaluate the RB encoded in the individual "indiv"
indiv
- individula to be evaluated.public double eval_test(Individual indiv)
It evaluate the RB encoded in the individual "indiv"
indiv
- individual to be evaluated.public java.lang.String Print_Population(Individual indiv)
It prints the current RB encoded in the individual "indiv" as a String
indiv
- Individual The individual enconding the RB