|
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.algorithm.AbstractAlgorithm
org.moeaframework.algorithm.pisa.PISAAlgorithm
public class PISAAlgorithm
Algorithm for interfacing with an external PISA selector. The PISA framework is a platform and programming language independent interface for search algorithms. PISA separates search algorithms into selectors, describing the optimization algorithm, and variators, describing the optimization problem. PISA uses a file-based communication channel between selectors and variators, which may result in excessive communication costs, file system bottlenecks and file name collisions. See the PISA homepage for detailed instructions.
Note that some PISA selectors parse the command line arguments using sscanf
sscanf(argv[2], "%s", filenamebase);On some operating systems, this will not work if the files used by PISA contain whitespace in the filename. It may be necessary to set the JVM property
java.io.tmpdir to a folder with no whitespace in the
filename.
| Field Summary |
|---|
| Fields inherited from class org.moeaframework.algorithm.AbstractAlgorithm |
|---|
initialized, numberOfEvaluations, problem, terminated |
| Constructor Summary | |
|---|---|
PISAAlgorithm(String name,
Problem problem,
Variation variation,
Properties properties)
Constructs an adapter for a PISA selector. |
|
| Method Summary | |
|---|---|
NondominatedPopulation |
getResult()
Returns the current best-known result. |
void |
initialize()
Performs any initialization that is required by this algorithm. |
void |
iterate()
Performs one iteration of the algorithm. |
void |
terminate()
Implementations should always invoke super.terminate() to ensure
the hierarchy is terminated correctly. |
| Methods inherited from class org.moeaframework.algorithm.AbstractAlgorithm |
|---|
evaluate, evaluateAll, evaluateAll, finalize, getNumberOfEvaluations, getProblem, getState, isInitialized, isTerminated, setState, step |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PISAAlgorithm(String name,
Problem problem,
Variation variation,
Properties properties)
throws IOException
name - the name of the PISA selectorproblem - the problem being solvedvariation - the variation operatorproperties - additional properties for the PISA selector
configuration file
IOException - if an I/O error occurred| Method Detail |
|---|
public void initialize()
AbstractAlgorithmAbstractAlgorithm.step(), but may also be called manually prior to any invocations
of step. Implementations should always invoke
super.initialize() to ensure the hierarchy is initialized
correctly.
initialize in class AbstractAlgorithmpublic void terminate()
AbstractAlgorithmsuper.terminate() to ensure
the hierarchy is terminated correctly. This method is automatically
invoked during finalization, and need only be called directly if
non-Java resources are in use.
terminate in interface Algorithmterminate in class AbstractAlgorithmpublic void iterate()
AbstractAlgorithm
iterate in class AbstractAlgorithmpublic NondominatedPopulation getResult()
Algorithm
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||