|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.spi.AlgorithmProvider
org.moeaframework.algorithm.pisa.PISAAlgorithms
public class PISAAlgorithms
Algorithm provider for PISA selectors. In order to make a PISA selector
available for this provider, two steps are required. First, the PISA selector
must be downloaded and, if necessary, compiled. Second, the configuration
file (typically global.properties) must be updated with the new
PISA selector. As an example, for the HypE selector, add the selector name,
hype, to the list of PISA algorithms:
org.moeaframework.util.pisa.algorithms = hype, spea2, nsga2For each algorithm, define its configuration options below. For the example of
hype, specify the following:
org.moeaframework.algorithm.pisa.hype.command = ./path/to/hype.exe
org.moeaframework.algorithm.pisa.hype.parameters = seed, tournament, mating, bound, nrOfSamples
The order typically matters, so ensure the parameters are listed in the
same order as expected by the executable.
org.moeaframework.algorithm.pisa.hype.parameter.tournament = 5
org.moeaframework.algorithm.pisa.hype.parameter.mating = 1
...
It is not necessary to give a default for the seed parameter as it is
set automatically by the MOEA Framework.
org.moeaframework.algorithm.pisa.hype.configuration = ./path/to/hype_params.txtThis is still accepted, but would mean the MOEA Framework is unable to change the algorithm parameters. Once completed, the PISA selector can be used with:
Algorithm algorithm = AlgorithmFactory.getInstance().getAlgorithm("hype", properties, problem);
| Constructor Summary | |
|---|---|
PISAAlgorithms()
Constructs an algorithm provider for PISA selectors. |
|
| Method Summary | |
|---|---|
Algorithm |
getAlgorithm(String name,
Properties properties,
Problem problem)
Returns the algorithm with the specified name, or null if this
provider does not support the algorithm. |
protected String |
getCaseSensitiveSelectorName(String name)
Returns the case-sensitive version of the PISA algorithm name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PISAAlgorithms()
| Method Detail |
|---|
protected String getCaseSensitiveSelectorName(String name)
name - the case-insensitive name
public Algorithm getAlgorithm(String name,
Properties properties,
Problem problem)
AlgorithmProvidernull if this
provider does not support the algorithm. An optional set of properties
may be provided to further define the algorithm; however, the provider is
expected to supply default properties if none are provided.
getAlgorithm in class AlgorithmProvidername - the algorithm nameproperties - optional properties for the algorithmproblem - the problem
null if this
provider does not support the algorithm
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||