Package sfc_ft_b
Class Best_b
java.lang.Object
sfc_ft_b.Best_b
public class Best_b
extends java.lang.Object
store the best fitness and solution
-
Field Summary
Fields Modifier and Type Field Description private double
bestfitness
fitness of current best solutionprivate java.lang.String[]
bestphenotype
current best solution -
Constructor Summary
Constructors Constructor Description Best_b(int f)
-
Method Summary
Modifier and Type Method Description double
getbestfitness()
get best fitnessint[]
getbestphenotype()
get best solutionvoid
setbestfitness(double newfit)
set best fitnessvoid
setbestphenotype(int[] ma)
set best solutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bestphenotype
private java.lang.String[] bestphenotypecurrent best solution -
bestfitness
private double bestfitnessfitness of current best solution
-
-
Constructor Details
-
Best_b
public Best_b(int f)
-
-
Method Details
-
getbestfitness
public double getbestfitness()get best fitness -
setbestfitness
public void setbestfitness(double newfit)set best fitness -
getbestphenotype
public int[] getbestphenotype()get best solution -
setbestphenotype
public void setbestphenotype(int[] ma)set best solution
-