Package sfc_ft_a
Class Best
java.lang.Object
sfc_ft_a.Best
public class Best
extends java.lang.Object
store the best fitness and mapping
-
Field Summary
Fields Modifier and Type Field Description private int[]
avcap
available capacityprivate double
bestfitness
fitness of current best mappingprivate java.lang.String[]
bestmapping
current best mapping -
Constructor Summary
Constructors Constructor Description Best(int f)
-
Method Summary
Modifier and Type Method Description int[]
getavcap()
get available capacitydouble
getbestfitness()
get best fitnessint[]
getbestmapping()
get best solution mappingvoid
setavcap(int ind, int c)
set available capacityvoid
setbestfitness(double newfit)
set best fitnessvoid
setbestmapping(int[] ma)
set best solution mappingvoid
stats()
statisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bestmapping
private java.lang.String[] bestmappingcurrent best mapping -
bestfitness
private double bestfitnessfitness of current best mapping -
avcap
private int[] avcapavailable capacity
-
-
Constructor Details
-
Best
public Best(int f)
-
-
Method Details
-
getbestfitness
public double getbestfitness()get best fitness -
setbestfitness
public void setbestfitness(double newfit)set best fitness -
setavcap
public void setavcap(int ind, int c)set available capacity -
getavcap
public int[] getavcap()get available capacity -
stats
public void stats()statistics -
getbestmapping
public int[] getbestmapping()get best solution mapping -
setbestmapping
public void setbestmapping(int[] ma)set best solution mapping
-