public class populationbinary
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
AND_OR_Stationary(int indiv1,
int indiv2)
Given the individuals "indiv1" and "indiv2", it selects two points
and makes the AND/OR operation between their central zones.
|
java.lang.Object |
clone() |
char[] |
Code(int i,
int[] vector,
int pos) |
char[] |
Individual(int i,
Int_t tama) |
void |
InitialPopulation(int[][] sujeto,
int tama,
int[] tama_dom) |
void |
InitialPopulationValue(char valor) |
boolean |
Modified(int i) |
void |
NAND_NOR_Stationary(int indiv1,
int indiv2)
Given the individuals "indiv1" and "indiv2", it selects two points
and makes the NAND/NOR operation between their central zones.
|
void |
Paint(int i) |
void |
PaintFitness(int i) |
void |
PaintFitnessInFile(int i) |
void |
PaintInFile(int i) |
void |
Pass(int i,
populationbinary x,
int j) |
void |
PutValue(int indiv,
int bit,
char value) |
void |
RandomInitialPopulation() |
void |
Rotation(int i)
Given the individual "i", a rotation operation is made.
|
void |
Sort() |
void |
Swap_bool(boolean[] v,
int i,
int j) |
void |
Swap_double(double[] v,
int i,
int j) |
void |
Swap_int(int[] v,
int i,
int j) |
void |
Swap(int i,
int j) |
void |
TwoPointsCrossover_Stationary(int indiv1,
int indiv2)
Given the individuals "indiv1" and "indiv2", it selects two points
exchanging their central zones.
|
void |
UniformMutation_Stationary()
Stationary uniform mutation operator
|
public java.lang.Object clone()
clone
in class java.lang.Object
public char[] Individual(int i, Int_t tama)
public boolean Modified(int i)
public void Pass(int i, populationbinary x, int j)
public void Swap(int i, int j)
public void Swap_int(int[] v, int i, int j)
public void Swap_double(double[] v, int i, int j)
public void Swap_bool(boolean[] v, int i, int j)
public char[] Code(int i, int[] vector, int pos)
public void Sort()
public void Paint(int i)
public void PaintFitness(int i)
public void PaintInFile(int i) throws java.io.IOException
java.io.IOException
public void PaintFitnessInFile(int i) throws java.io.IOException
java.io.IOException
public void PutValue(int indiv, int bit, char value)
public void RandomInitialPopulation()
public void InitialPopulation(int[][] sujeto, int tama, int[] tama_dom)
public void InitialPopulationValue(char valor)
public void UniformMutation_Stationary()
Stationary uniform mutation operator
public void Rotation(int i)
Given the individual "i", a rotation operation is made. The resultant individual are placed stay in position i. in the positions "i" of the population
i
- int An individualpublic void TwoPointsCrossover_Stationary(int indiv1, int indiv2)
Given the individuals "indiv1" and "indiv2", it selects two points exchanging their central zones.
indiv1
- int An individualindiv2
- int An individualpublic void AND_OR_Stationary(int indiv1, int indiv2)
Given the individuals "indiv1" and "indiv2", it selects two points and makes the AND/OR operation between their central zones.
indiv1
- int An individualindiv2
- int An individualpublic void NAND_NOR_Stationary(int indiv1, int indiv2)
Given the individuals "indiv1" and "indiv2", it selects two points and makes the NAND/NOR operation between their central zones.
indiv1
- int An individualindiv2
- int An individual