org.dbe.eve.opt.alg.gaBeasely
Class GAsolution

java.lang.Object
  extended by org.dbe.eve.opt.alg.gaBeasely.GAsolution

public class GAsolution
extends java.lang.Object


Field Summary
private  int[] dimensions
           
private  int fitness
           
private  boolean[][] ioMatrix
           
private  ZeroOneMatrix matrix
           
private  boolean[] phenotype
           
private  java.util.Random random
           
private  int size
           
private  boolean[] solution
           
 
Constructor Summary
GAsolution(int s, ZeroOneMatrix m, double GAinitPop)
           
GAsolution(ZeroOneMatrix m, boolean[] genotype)
           
 
Method Summary
 int getFitness()
           
 java.lang.String getGenotype()
           
 java.util.Vector getIndices()
           
 java.lang.String getInfo()
           
 java.lang.String getPheno()
           
 java.lang.String getServiceList()
           
 boolean[] getSolution()
           
 void heuristicFeasibilityFactor()
           
 void mutate()
           
private  int[] randomiseArray(int[] in)
           
 void setFitness()
           
private  void setPhenotype()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GAsolution

public GAsolution(int s,
                  ZeroOneMatrix m,
                  double GAinitPop)

GAsolution

public GAsolution(ZeroOneMatrix m,
                  boolean[] genotype)
Method Detail

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()