Package org.opt4j.optimizer.mopso
Class MOPSOModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.core.optimizer.OptimizerModule
org.opt4j.optimizer.mopso.MOPSOModule
- All Implemented Interfaces:
com.google.inject.Module
The
MOPSOModule
for the MOPSO
optimizer.-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected double
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
config()
Configure the module.int
Returns the leader archive size.int
Returns the number of iterations.int
Returns the number of particles.double
Returns the perturbation.void
setArchiveSize
(int archiveSize) Sets the leader archive size.void
setIterations
(int iterations) Sets the the number of iterations.void
setParticles
(int particles) Sets the number of particles.void
setPerturbation
(double perturbation) Sets the perturbation.Methods inherited from class org.opt4j.core.optimizer.OptimizerModule
bindOptimizer
Methods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
particles
protected int particles -
archiveSize
protected int archiveSize -
iterations
protected int iterations -
perturbation
protected double perturbation
-
-
Constructor Details
-
MOPSOModule
public MOPSOModule()
-
-
Method Details
-
getPerturbation
public double getPerturbation()Returns the perturbation.- Returns:
- the perturbation
- See Also:
-
setPerturbation
public void setPerturbation(double perturbation) Sets the perturbation.- Parameters:
perturbation
- the perturbation to set- See Also:
-
getIterations
public int getIterations()Returns the number of iterations.- Returns:
- the iterations
- See Also:
-
setIterations
public void setIterations(int iterations) Sets the the number of iterations.- Parameters:
iterations
- the iterations to set- See Also:
-
getParticles
public int getParticles()Returns the number of particles.- Returns:
- the particles
- See Also:
-
setParticles
public void setParticles(int particles) Sets the number of particles.- Parameters:
particles
- the particles to set- See Also:
-
getArchiveSize
public int getArchiveSize()Returns the leader archive size.- Returns:
- the archiveSize
- See Also:
-
setArchiveSize
public void setArchiveSize(int archiveSize) Sets the leader archive size.- Parameters:
archiveSize
- the archiveSize to set- See Also:
-
config
protected void config()Description copied from class:Opt4JModule
Configure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
config
in classOpt4JModule
- See Also:
-
Binder
-