public class ArchiveModule extends Opt4JModule
ArchiveModule determines an implementation for the
Archive interface.UnboundedArchive,
PopulationArchive,
CrowdingArchive,
AdaptiveGridArchive,
Archive| Modifier and Type | Class and Description |
|---|---|
static class |
ArchiveModule.Type
Archive type.
|
SINGLETON| Constructor and Description |
|---|
ArchiveModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
config()
Configure the module.
|
int |
getCapacity()
Returns the archive's capacity.
|
int |
getDivisions()
Returns the number of divisions for the
AdaptiveGridArchive. |
ArchiveModule.Type |
getType()
Returns the archive type.
|
void |
setCapacity(int capacity)
Sets the archive's capacity to the specified value.
|
void |
setDivisions(int divisions)
Set the number of divisions for the
AdaptiveGridArchive. |
void |
setType(ArchiveModule.Type type)
Sets the archive type to the specified value.
|
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, constant, multipublic int getDivisions()
AdaptiveGridArchive.setDivisions(int)public void setDivisions(int divisions)
AdaptiveGridArchive.divisions - the number of divisionsgetDivisions()public void setType(ArchiveModule.Type type)
type - the new archive typegetType()public ArchiveModule.Type getType()
setType(org.opt4j.common.archive.ArchiveModule.Type)public void setCapacity(int capacity)
capacity - the new capacity (using namespace BoundedArchive)getCapacity()public int getCapacity()
setCapacity(int)public void config()
Opt4JModuleBinder