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:
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
-
-
Field Summary
Fields Modifier and Type Field Description protected PackDataDefm_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
-
-
Constructor Summary
Constructors Constructor Description PackDataGeneticAlgorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PackDataDefgetDataDef()abstract List<PackData>getDataSetups()protected adams.opt.genetic.initialsetups.AbstractInitialSetupsProvidergetDefaultInitialSetupsProvider()Returns the default initial setups provider.voidinit(int ch)protected voidprint(double[] bits)Outputs the bits with the logger - logging needs to be enabled.voidprintBits(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
-
-
-
-
Field Detail
-
m_pdd
protected PackDataDef m_pdd
-
-
Method Detail
-
getDefaultInitialSetupsProvider
protected adams.opt.genetic.initialsetups.AbstractInitialSetupsProvider getDefaultInitialSetupsProvider()
Returns the default initial setups provider.- Overrides:
getDefaultInitialSetupsProviderin classadams.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()
-
-