All Implemented Interfaces:
ActionListener, ItemListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class HGAFSPanel extends BasicGAPanel
This java class is used to create and show a panel for the parameter settings of the hybrid genetic algorithm using local search (HGAFS).
Author:
Sina Tabakhi
See Also:
  • Constructor Details

    • HGAFSPanel

      public HGAFSPanel()
      Creates new form HGAFSPanel. This method is called from within the constructor to initialize the form.
  • Method Details

    • keyReleased

      public void keyReleased(KeyEvent e)
      The listener method for receiving keyboard events (keystrokes). Invoked when a key has been released.
      Specified by:
      keyReleased in interface KeyListener
      Overrides:
      keyReleased in class BasicGAPanel
      Parameters:
      e - an action event
    • btn_okActionPerformed

      protected void btn_okActionPerformed(ActionEvent e)
      This method sets an action for the btn_ok button.
      Overrides:
      btn_okActionPerformed in class BasicGAPanel
      Parameters:
      e - an action event
    • getEpsilon

      public double getEpsilon()
      This method returns the epsilon value.
      Returns:
      the epsilon parameter
    • setEpsilon

      public void setEpsilon(double epsilon)
      This method sets the epsilon value.
      Parameters:
      epsilon - the epsilon value
    • getMu

      public double getMu()
      This method returns the mu value.
      Returns:
      the mu parameter
    • setMu

      public void setMu(double mu)
      This method sets the mu value.
      Parameters:
      mu - the mu value
    • setDefaultValue

      public void setDefaultValue()
      Sets the default values of the HGAFS parameters
      Overrides:
      setDefaultValue in class BasicGAPanel
    • setUserValue

      public void setUserValue(ClassifierType classifierType, Object selectedClassifierPan, SelectionType selectionType, CrossOverType crossoverType, MutationType mutationType, ReplacementType replacementType, int numIteration, int populationSize, double crossoverRate, double mutationRate, int kFolds, double epsilon, double mu)
      Sets the last values of the basic GA parameters entered by user
      Parameters:
      classifierType - the selected classifier type
      selectedClassifierPan - the selected classifier panel
      selectionType - the selected selection type
      crossoverType - the selected crossover type
      mutationType - the selected mutation type
      replacementType - the selected replacement type
      numIteration - the maximum number of allowed iterations that algorithm repeated
      populationSize - the size of population of candidate solutions
      crossoverRate - the probability of crossover operation
      mutationRate - the probability of mutation operation
      kFolds - the number of equal sized subsamples that is used in k-fold cross validation
      epsilon - the epsilon parameter used in the subset size determining scheme
      mu - the mu parameter used in the local search operation (control similar/dissimilar)