Class PackDataGeneticAlgorithm

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.Pausable, adams.core.Randomizable, adams.core.ShallowCopySupporter<adams.opt.genetic.AbstractGeneticAlgorithm>, adams.core.SizeOfHandler, adams.core.Stoppable, adams.core.StoppableWithFeedback, adams.core.ThreadLimiter, Serializable

    public abstract class PackDataGeneticAlgorithm
    extends adams.opt.genetic.AbstractGeneticAlgorithm
    ???
    Version:
    $Revision$
    Author:
    Dale (dale at cs dot waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class adams.opt.genetic.AbstractGeneticAlgorithm

        adams.opt.genetic.AbstractGeneticAlgorithm.FitnessContainer, adams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob<T extends adams.opt.genetic.AbstractGeneticAlgorithm>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected PackDataDef m_pdd  
      • Fields inherited from class adams.opt.genetic.AbstractGeneticAlgorithm

        m_ActualNumChrom, m_BestFitness, m_BestRange, m_BestSetup, m_BestWeights, m_CurrentIteration, m_FavorZeroes, m_Fitness, m_FitnessChangeListeners, m_FitnessHistory, m_Genes, m_InitialSetupsProvider, m_InitialWeights, m_LastNotificationTime, m_MaxFitnessHistorySize, m_NotificationInterval, m_NumChrom, m_NumGenes, m_NumThreads, m_Paused, m_Random, m_Running, m_Seed, m_Stopped, m_StoppingCriterion
      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract PackDataDef getDataDef()  
      abstract List<PackData> getDataSetups()  
      protected adams.opt.genetic.initialsetups.AbstractInitialSetupsProvider getDefaultInitialSetupsProvider()
      Returns the default initial setups provider.
      void init​(int ch)  
      protected void print​(double[] bits)
      Outputs the bits with the logger - logging needs to be enabled.
      void printBits​(int[] bits)
      Outputs the bits with the logger - logging needs to be enabled.
      • Methods inherited from class adams.opt.genetic.AbstractGeneticAlgorithm

        addFitnessChangeListener, addToFitnessHistory, bestRangeTipText, calcFitness, copyGene, defineOptions, doCrossovers, doMutations, doMutations2, favorZeroesTipText, forCommandLine, forName, getBestRange, getCurrentFitness, getCurrentIteration, getCurrentSetup, getCurrentWeights, getFavorZeroes, getFitness, getFitnessHistory, getGene, getGeneticAlgorithms, getInitialSetups, getInitialSetupsProvider, getInitialWeights, getMaxFitnessHistorySize, getNotificationInterval, getNumChrom, getNumGenes, getNumThreads, getSeed, getStoppingCriterion, hasMoreZeroes, init, initialize, initialSetupsProviderTipText, initialWeightsTipText, isBetterFitness, isPaused, isRunning, isStopped, logChromosomes, maxFitnessHistorySizeTipText, notificationIntervalTipText, notifyFitnessChangeListeners, notifyFitnessChangeListeners, numChromTipText, numThreadsTipText, pauseExecution, postRun, preRun, removeFitnessChangeListener, reset, resumeExecution, run, runGeneticAlgorithm, seedTipText, setBestRange, setBestRange, setFavorZeroes, setGene, setGene, setInitialSetupsProvider, setInitialWeights, setMaxFitnessHistorySize, setNewFitness, setNotificationInterval, setNumChrom, setNumThreads, setSeed, setStoppingCriterion, shallowCopy, shallowCopy, sort, stopExecution, stoppingCriterionTipText
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
    • Constructor Detail

      • PackDataGeneticAlgorithm

        public PackDataGeneticAlgorithm()
    • Method Detail

      • getDefaultInitialSetupsProvider

        protected adams.opt.genetic.initialsetups.AbstractInitialSetupsProvider getDefaultInitialSetupsProvider()
        Returns the default initial setups provider.
        Overrides:
        getDefaultInitialSetupsProvider in class adams.opt.genetic.AbstractGeneticAlgorithm
        Returns:
        the default
      • printBits

        public void printBits​(int[] bits)
        Outputs the bits with the logger - logging needs to be enabled.
        Parameters:
        bits - the bits to output
      • print

        protected void print​(double[] bits)
        Outputs the bits with the logger - logging needs to be enabled.
        Parameters:
        bits - the bits to output
      • init

        public void init​(int ch)
      • getDataDef

        public abstract PackDataDef getDataDef()
      • getDataSetups

        public abstract List<PackData> getDataSetups()