org.dbe.eve.opt.alg.gaBeasely
Class GAsolution
java.lang.Object
org.dbe.eve.opt.alg.gaBeasely.GAsolution
public class GAsolution
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
solution
private boolean[] solution
size
private int size
random
private java.util.Random random
fitness
private int fitness
matrix
private ZeroOneMatrix matrix
ioMatrix
private boolean[][] ioMatrix
phenotype
private boolean[] phenotype
dimensions
private int[] dimensions
GAsolution
public GAsolution(int s,
ZeroOneMatrix m,
double GAinitPop)
GAsolution
public GAsolution(ZeroOneMatrix m,
boolean[] genotype)
getFitness
public int getFitness()
getPheno
public java.lang.String getPheno()
setPhenotype
private void setPhenotype()
getServiceList
public java.lang.String getServiceList()
heuristicFeasibilityFactor
public void heuristicFeasibilityFactor()
randomiseArray
private int[] randomiseArray(int[] in)
mutate
public void mutate()
getInfo
public java.lang.String getInfo()
getIndices
public java.util.Vector getIndices()
getSolution
public boolean[] getSolution()
setFitness
public void setFitness()
getGenotype
public java.lang.String getGenotype()