Package adams.opt.genetic
Class PackDataGeneticAlgorithm
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.opt.genetic.AbstractGeneticAlgorithm
-
- adams.opt.genetic.PackDataGeneticAlgorithm
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,Pausable
,Randomizable
,ShallowCopySupporter<AbstractGeneticAlgorithm>
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,ThreadLimiter
,Serializable
public abstract class PackDataGeneticAlgorithm extends 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
AbstractGeneticAlgorithm.FitnessContainer, AbstractGeneticAlgorithm.GeneticAlgorithmJob<T extends 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
-
-
Constructor Summary
Constructors Constructor Description PackDataGeneticAlgorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PackDataDef
getDataDef()
abstract List<PackData>
getDataSetups()
protected 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_pdd
protected PackDataDef m_pdd
-
-
Method Detail
-
getDefaultInitialSetupsProvider
protected AbstractInitialSetupsProvider getDefaultInitialSetupsProvider()
Returns the default initial setups provider.- Overrides:
getDefaultInitialSetupsProvider
in classAbstractGeneticAlgorithm
- 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()
-
-