Package sfc_b

Class Best_b

java.lang.Object
sfc_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 solution
    private 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 fitness
    int[] getbestphenotype()
    get best solution
    void setbestfitness​(double newfit)
    set best fitness
    void setbestphenotype​(int[] ma)
    set best solution

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bestphenotype

      private java.lang.String[] bestphenotype
      current best solution
    • bestfitness

      private double bestfitness
      fitness 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