org.dbe.eve.opt.setcover
Class UMDAsolution
java.lang.Object
org.dbe.eve.opt.setcover.UMDAsolution
public class UMDAsolution
- 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
weightedFitness
private double weightedFitness
matrix
private ZeroOneMatrix matrix
phenotype
private boolean[] phenotype
numServices
private int numServices
UMDAsolution
public UMDAsolution(int s,
ZeroOneMatrix m)
UMDAsolution
public UMDAsolution(int s,
ZeroOneMatrix m,
double[] pv)
UMDAsolution
public UMDAsolution(boolean[] sol,
int s,
int f,
double w,
ZeroOneMatrix m,
boolean[] phen,
int numS)
copySolution
public UMDAsolution copySolution()
setFitness
private void setFitness()
mutate
public void mutate()
removeExtraServices
public void removeExtraServices()
removeService
private void removeService(int column)
addService
private void addService(int column)
getFitness
public double getFitness()
getWeightedFitness
public double getWeightedFitness()
getSolution
public boolean[] getSolution()
getNumServices
public int getNumServices()
getPheno
public java.lang.String getPheno()
getGenotype
public java.lang.String getGenotype()
getSize
public int getSize()
isComplete
public boolean isComplete()