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[]avcapavailable capacityprivate doublebestfitnessfitness of current best mappingprivate java.lang.String[]bestmappingcurrent best mapping -
Constructor Summary
Constructors Constructor Description Best(int f) -
Method Summary
Modifier and Type Method Description int[]getavcap()get available capacitydoublegetbestfitness()get best fitnessint[]getbestmapping()get best solution mappingvoidsetavcap(int ind, int c)set available capacityvoidsetbestfitness(double newfit)set best fitnessvoidsetbestmapping(int[] ma)set best solution mappingvoidstats()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
-